Android Reference
SSLEngineDataStream
org.apache.harmony.xnet.provider.jsse
Class SSLEngineDataStream
-
- All Implemented Interfaces:
- DataStream
public class SSLEngineDataStream
extends Object
implements DataStream
This class provides the DataStream functionality
implemented over the array of ByteBuffer instances.
Among with the data chunks read functionality
it provides the info about amount of consumed data.
The source ByteBuffer objects can be replaced by other.
So one instance of this wrapper can be reused for several
data sources.
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
int |
available() |
protected int |
consumed() |
byte[] |
getData(int length)
Retrieves the data of specified length from the stream.
|
boolean |
hasData()
Checks if there is data to be read.
|
protected void |
setSourceBuffers(ByteBuffer[] srcs,
int offset,
int length) |
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
available
public int available()
-
getData
public byte[] getData(int length)
Retrieves the data of specified length from the stream.
If the data size in the stream is less than specified length,
method returns all the data contained in the stream.
- Specified by:
getData
in interface DataStream
- Returns:
- byte array containing the demanded data.
-
consumed
protected int consumed()
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 33 / 158777145. Delta: 0.03437 с