java.io.Serializable
, DataStructure
AbuseReason
, AbuseSeverity
, Certificate
, DatabaseEntry
, DateAndFlags
, DeliveryInstructions
, GarlicClove
, I2CPMessageImpl
, I2NPMessageImpl
, KeysAndCert
, Lease
, MessageId
, Payload
, RouterAddress
, SessionConfig
, SessionId
, SimpleDataStructure
, TunnelId
public abstract class DataStructureImpl extends java.lang.Object implements DataStructure, java.io.Serializable
コンストラクタ | 説明 |
---|---|
DataStructureImpl() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
Hash |
calculateHash() |
Calculate the SHA256 value of this object (useful for a few scenarios)
|
void |
fromBase64(java.lang.String data) |
Load the structure from the base 64 encoded data provided
Warning - many classes will throw IllegalStateException if data is already set.
|
void |
fromByteArray(byte[] data) |
Load the structure from the data provided
Warning - many classes will throw IllegalStateException if data is already set.
|
protected int |
read(java.io.InputStream in,
byte[] target) |
Repeated reads until the buffer is full or IOException is thrown
|
java.lang.String |
toBase64() |
render the structure into modified base 64 notation
|
byte[] |
toByteArray() |
readBytes, writeBytes
public java.lang.String toBase64()
DataStructure
toBase64
インタフェース内 DataStructure
public void fromBase64(java.lang.String data) throws DataFormatException
DataStructure
fromBase64
インタフェース内 DataStructure
DataFormatException
public Hash calculateHash()
DataStructure
calculateHash
インタフェース内 DataStructure
public byte[] toByteArray()
toByteArray
インタフェース内 DataStructure
public void fromByteArray(byte[] data) throws DataFormatException
DataStructure
fromByteArray
インタフェース内 DataStructure
DataFormatException
protected int read(java.io.InputStream in, byte[] target) throws java.io.IOException
java.io.IOException