com.sun.enterprise.web.connector.grizzly.ssl
Class SSLByteBufferInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream
          extended by com.sun.enterprise.web.connector.grizzly.ssl.SSLByteBufferInputStream
All Implemented Interfaces:
Closeable

public class SSLByteBufferInputStream
extends ByteBufferInputStream

Stream wrapper around a ByteBuffer. Under the hood, Selector are used to read bytes from the underlying socketChannel.

Author:
Jean-Francois Arcand

Field Summary
 
Fields inherited from class com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream
byteBuffer, key, readTimeout, readTry
 
Constructor Summary
SSLByteBufferInputStream()
           
 
Method Summary
protected  int doRead()
          Read and decrypt bytes from the underlying SSL connections.
 
Methods inherited from class com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream
available, close, getByteBuffer, getDefaultReadTimeout, getReadTimeout, markSupported, read, read, read, read, readBlocking, recycle, setByteBuffer, setDefaultReadTimeout, setReadTimeout, 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

SSLByteBufferInputStream

public SSLByteBufferInputStream()
Method Detail

doRead

protected int doRead()
Read and decrypt bytes from the underlying SSL connections. All the SSLEngine operations are delegated to class SSLUtils.

Overrides:
doRead in class ByteBufferInputStream


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.