Top Constructors Methods
org.apache.tomcat.util.http

public Class HeaderUtil

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

A String with non-printing characters replaced by the 0xNN equivalent
toPrintableString
(byte[]
Contains an HTTP header line
bytes
,
int
The start position of the header line in the array
offset
,
int
The length of the HTTP header line
len
)

Converts an HTTP header line in byte form to a printable String.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HeaderUtilback to summary
private HeaderUtil()

Method Detail

toPrintableStringback to summary
public static String toPrintableString(byte[] bytes, int offset, int len)

Converts an HTTP header line in byte form to a printable String. Bytes corresponding to visible ASCII characters will converted to those characters. All other bytes (0x00 to 0x1F, 0x7F to OxFF) will be represented in 0xNN form.

Parameters
bytes:byte[]

Contains an HTTP header line

offset:int

The start position of the header line in the array

len:int

The length of the HTTP header line

Returns:String

A String with non-printing characters replaced by the 0xNN equivalent