Top Constructors Methods
org.glassfish.grizzly.http.util

pack-priv final Class ReadConverter

Located in compilation unit of org.glassfish.grizzly.http.util.B2CConverterBlocking.

extends InputStreamReader
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
ReadConverter(IntermediateInputStream in, Charset charset)

Create a converter.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides java.io.InputStreamReader.close.

Implements java.io.Closeable.close.

Overriden - will do nothing but reset internal state.

public int
read(char[] cbuf, int off, int len)

Overrides java.io.InputStreamReader.read.

Reads characters into a portion of an array.

public void
recycle()

Reset the buffer

Inherited from java.io.InputStreamReader:
getEncodingreadreadready

Constructor Detail

ReadConverterback to summary
public ReadConverter(IntermediateInputStream in, Charset charset) throws UnsupportedEncodingException

Create a converter.

Method Detail

closeback to summary
public void close() throws IOException

Overrides java.io.InputStreamReader.close.

Implements java.io.Closeable.close.

Overriden - will do nothing but reset internal state.

Annotations
@Override
Exceptions
IOException:

Doc from java.io.Reader.close.

If an I/O error occurs

readback to summary
public int read(char[] cbuf, int off, int len) throws IOException

Overrides java.io.InputStreamReader.read.

Doc from java.io.InputStreamReader.read.

Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached.

If len is zero, then no characters are read and 0 is returned; otherwise, there is an attempt to read at least one character. If no character is available because the stream is at its end, the value -1 is returned; otherwise, at least one character is read and stored into cbuf.

Annotations
@Override
Exceptions
IOException:

Doc from java.io.Reader.read.

If an I/O error occurs

recycleback to summary
public void recycle()

Reset the buffer