com.sun.grizzly.comet
Class CometInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.grizzly.util.ByteBufferInputStream
          extended by com.sun.grizzly.comet.CometInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
CometInputStream

public class CometInputStream
extends ByteBufferInputStream

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.ByteBufferInputStream
ByteBufferInputStream.ChannelType
 
Field Summary
 
Fields inherited from class com.sun.grizzly.util.ByteBufferInputStream
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.ByteBufferInputStream
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 ByteBufferInputStream


Copyright © 2008 SUN Microsystems. All Rights Reserved.