Class HeaderUtil
java.lang.Object
org.apache.tomcat.util.http.HeaderUtil
- 
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoPrintableString(byte[] bytes, int offset, int len) Converts an HTTP header line in byte form to a printable String. 
- 
Method Details
- 
toPrintableString
Converts an HTTP header line in byte form to a printable String. Bytes corresponding to visible ASCII characters will be converted to those characters. All other bytes (0x00 to 0x1F, 0x7F to 0xFF) will be represented in 0xNN form.- Parameters:
 bytes- Contains an HTTP header lineoffset- The start position of the header line in the arraylen- The length of the HTTP header line- Returns:
 - A String with non-printing characters replaced by the 0xNN equivalent
 
 
 -