Package one.nio.serial
Class SerializeStream
java.lang.Object
one.nio.serial.DataStream
one.nio.serial.SerializeStream
- All Implemented Interfaces:
DataInput,DataOutput,ObjectInput,ObjectOutput,AutoCloseable
- Direct Known Subclasses:
PersistStream
-
Field Summary
FieldsFields inherited from class one.nio.serial.DataStream
address, array, FIRST_BOOT_UID, limit, offset, REF_EMBEDDED, REF_NULL, REF_RECURSIVE, REF_RECURSIVE2 -
Constructor Summary
ConstructorsConstructorDescriptionSerializeStream(byte[] array) SerializeStream(byte[] array, int contextCapacity) SerializeStream(long address, long length) -
Method Summary
Methods inherited from class one.nio.serial.DataStream
address, alloc, array, available, byteBuffer, count, flush, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readRef, readShort, readTo, readUnsignedByte, readUnsignedShort, readUTF, register, skip, skipBytes, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeFrom, writeInt, writeLong, writeShort, writeUTF
-
Field Details
-
context
-
-
Constructor Details
-
SerializeStream
public SerializeStream(byte[] array) -
SerializeStream
public SerializeStream(byte[] array, int contextCapacity) -
SerializeStream
public SerializeStream(long address, long length)
-
-
Method Details
-
writeObject
- Specified by:
writeObjectin interfaceObjectOutput- Overrides:
writeObjectin classDataStream- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectInput- Specified by:
closein interfaceObjectOutput- Overrides:
closein classDataStream
-
newScope
- Overrides:
newScopein classDataStream
-