Top Inners Fields Constructors Methods
org.glassfish.grizzly.nio.transport

public final Class DefaultStreamReader

extends AbstractStreamReader
Class Inheritance
Annotations
@SuppressWarnings:unchecked
Imports
java.io.IOException, org.glassfish.grizzly.Buffer, .CompletionHandler, .Connection, .Interceptor, .ReadResult, .Reader, .Transport, org.glassfish.grizzly.streams.AbstractStreamReader, .BufferedInput

Author
Alexey Stashok

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Inherited from org.glassfish.grizzly.streams.AbstractStreamReader:
connectioninputisClosed

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DefaultStreamReader.Input
Inherited from org.glassfish.grizzly.streams.AbstractStreamReader:
availableclosedecodedecodegetBufferWindowgetConnectionhasAvailableisClosedisSupportBufferWindownotifyAvailablenotifyAvailablenotifyConditionnotifyConditionreadBooleanreadBooleanArrayreadBytereadByteArrayreadByteArrayreadBytesreadCharreadCharArrayreadDoublereadDoubleArrayreadFloatreadFloatArrayreadIntreadIntArrayreadLongreadLongArrayreadShortreadShortArrayskiptakeBufferWindow

Constructor Detail

DefaultStreamReaderback to summary
public DefaultStreamReader(Connection<L> connection)

Method Detail

getSourceback to summary
public DefaultStreamReader.Input getSource()
org.glassfish.grizzly.nio.transport back to summary

public final Class DefaultStreamReader.Input

extends BufferedInput
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private DefaultStreamReader.Input.InputInterceptor
private DefaultStreamReader
Inherited from org.glassfish.grizzly.streams.BufferedInput:
completionHandlercompositeBufferconditionfutureisCompletionHandlerRegisteredlockregistrationStackTrace

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
protected void
protected void
Inherited from org.glassfish.grizzly.streams.BufferedInput:
appendclosegetBufferisBufferednotifyConditionprependreadsizeskiptakeBuffer

Field Detail

interceptorback to summary
private DefaultStreamReader.Input.InputInterceptor interceptor
parentStreamReaderback to summary
private DefaultStreamReader parentStreamReader

Constructor Detail

Inputback to summary
public Input()

Method Detail

notifyCompletedback to summary
protected void notifyCompleted(final CompletionHandler<Integer> completionHandler)

Overrides org.glassfish.grizzly.streams.BufferedInput.notifyCompleted.

Annotations
@Override
notifyFailureback to summary
protected void notifyFailure(final CompletionHandler<Integer> completionHandler, final Throwable failure)

Overrides org.glassfish.grizzly.streams.BufferedInput.notifyFailure.

Annotations
@Override
onCloseInputSourceback to summary
protected void onCloseInputSource() throws IOException

Implements abstract org.glassfish.grizzly.streams.BufferedInput.onCloseInputSource.

Annotations
@Override
onOpenInputSourceback to summary
protected void onOpenInputSource() throws IOException

Implements abstract org.glassfish.grizzly.streams.BufferedInput.onOpenInputSource.

Annotations
@Override
org.glassfish.grizzly.nio.transport back to summary

private Class DefaultStreamReader.Input.InputInterceptor

extends Object
implements Interceptor<ReadResult<Buffer, ?>>
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.nio.transport.DefaultStreamReader.Input.InputInterceptor
All Implemented Interfaces
org.glassfish.grizzly.Interceptor

Field Summary

Modifier and TypeField and Description
pack-priv boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public int
intercept(int event, Object context, ReadResult<Buffer, ?> result)

Implements org.glassfish.grizzly.Interceptor.intercept.

Callback method is called by Readable, so it is possible to customize reading process.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

isDoneback to summary
pack-priv boolean isDone

Constructor Detail

InputInterceptorback to summary
private InputInterceptor()

Method Detail

interceptback to summary
public int intercept(int event, Object context, ReadResult<Buffer, ?> result)

Implements org.glassfish.grizzly.Interceptor.intercept.

Doc from org.glassfish.grizzly.Interceptor.intercept.

Callback method is called by Readable, so it is possible to customize reading process. Mostly Interceptor is used to control asynchronous reads.

Annotations
@Override