Package org.conscrypt
Class SSLEngineAppData
java.lang.Object
org.conscrypt.SSLEngineAppData
- All Implemented Interfaces:
Appendable
public class SSLEngineAppData extends Object implements Appendable
This class is used to retrieve the application data
arrived for the SSLEngine.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSSLEngineAppData()Constructor -
Method Summary
Modifier and Type Method Description voidappend(byte[] src)Stores received data.protected intplaceTo(ByteBuffer[] dsts, int offset, int length)Places the data from the buffer into the array of destination ByteBuffer objects.
-
Constructor Details
-
SSLEngineAppData
protected SSLEngineAppData()Constructor
-
-
Method Details
-
append
public void append(byte[] src)Stores received data. The source data is not cloned, just the array reference is remembered into the buffer field.- Specified by:
appendin interfaceAppendable- Parameters:
src- the source data to be appended.
-
placeTo
Places the data from the buffer into the array of destination ByteBuffer objects.
-