public class SerializedBytes<T> extends OpaqueBytes
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize to get the original object back.
OpaqueBytes.Companion
Companion
Constructor and Description |
---|
SerializedBytes(byte[] bytes,
boolean internalOnly)
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize
to get the original object back.
|
Modifier and Type | Method and Description |
---|---|
SecureHash |
getHash() |
boolean |
getInternalOnly() |
java.nio.file.Path |
writeToFile(java.nio.file.Path path) |
public SerializedBytes(byte[] bytes, boolean internalOnly)
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize to get the original object back.
public SecureHash getHash()
public java.nio.file.Path writeToFile(java.nio.file.Path path)
public boolean getInternalOnly()