Modifier and Type | Method and Description |
---|---|
default void |
fromReferentialBytes(java.util.Map<java.lang.Long,Value> referenceMap,
byte[] data)
Reads this object's representation from a byte array, looking up value references in a map.
|
void |
readReferentialBytes(java.util.Map<java.lang.Long,Value> referenceMap,
java.io.InputStream in)
Imports this object from bytes, looking up value references in a map.
|
default byte[] |
toReferentialBytes(java.util.concurrent.atomic.AtomicLong referenceCounter,
java.util.Map<java.lang.Object,java.lang.Long> referenceSet)
Gets this object's representation as bytes, preserving up value references from a map.
|
void |
writeReferentialBytes(java.util.concurrent.atomic.AtomicLong referenceCounter,
java.util.Map<java.lang.Object,java.lang.Long> referenceSet,
java.io.OutputStream out)
Exports this object to bytes, preserving up value references from a map.
|
void writeReferentialBytes(java.util.concurrent.atomic.AtomicLong referenceCounter, java.util.Map<java.lang.Object,java.lang.Long> referenceSet, java.io.OutputStream out) throws java.io.IOException
referenceCounter
- the reference counter to use for when unique values are seen.referenceSet
- the reference set to use for "seen" value references - maps object reference to counter value.out
- the output stream to write to.java.io.IOException
- if a write problem occurs.void readReferentialBytes(java.util.Map<java.lang.Long,Value> referenceMap, java.io.InputStream in) throws java.io.IOException
referenceMap
- the reference map to use for "seen" value references.in
- the input stream to read from.java.io.IOException
- if a read problem occurs.default byte[] toReferentialBytes(java.util.concurrent.atomic.AtomicLong referenceCounter, java.util.Map<java.lang.Object,java.lang.Long> referenceSet) throws java.io.IOException
referenceCounter
- the reference counter to use for when unique values are seen.referenceSet
- the reference set to use for "seen" value references - maps object reference to counter value.java.io.IOException
- if a write problem occurs.default void fromReferentialBytes(java.util.Map<java.lang.Long,Value> referenceMap, byte[] data) throws java.io.IOException
referenceMap
- the reference map to use for "seen" value references.data
- the data to read.java.io.IOException
- if a read problem occurs.