com.sun.grizzly.comet
Class CometInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.grizzly.util.InputReader
          extended by com.sun.grizzly.comet.CometInputStream
All Implemented Interfaces:
Closeable

public class CometInputStream
extends InputReader

Simple InputStream implementation that is backed by a ByteBuffer

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.util.InputReader
InputReader.ChannelType
 
Field Summary
 
Fields inherited from class com.sun.grizzly.util.InputReader
byteBuffer, key, readTimeout
 
Constructor Summary
CometInputStream()
          Creates a new CometInputStream
 
Method Summary
 void recycle()
          Recycle the stream.
 
Methods inherited from class com.sun.grizzly.util.InputReader
available, close, doClearRead, doRead, doSecureRead, getByteBuffer, getChannelType, getDefaultReadTimeout, getReadTimeout, isSecure, markSupported, read, read, read, read, setByteBuffer, setChannelType, setDefaultReadTimeout, setReadTimeout, setSecure, setSelectionKey
 
Methods inherited from class java.io.InputStream
mark, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CometInputStream

public CometInputStream()
Creates a new CometInputStream

Method Detail

recycle

public void recycle()
Recycle the stream.

Overrides:
recycle in class InputReader


Copyright © 2012 Oracle Corporation. All Rights Reserved.