Package one.nio.serial
Class PersistStream
java.lang.Object
one.nio.serial.DataStream
one.nio.serial.SerializeStream
one.nio.serial.PersistStream
- All Implemented Interfaces:
DataInput,DataOutput,ObjectInput,ObjectOutput,AutoCloseable
-
Field Summary
Fields inherited from class one.nio.serial.SerializeStream
contextFields inherited from class one.nio.serial.DataStream
address, array, FIRST_BOOT_UID, limit, offset, REF_EMBEDDED, REF_NULL, REF_RECURSIVE, REF_RECURSIVE2 -
Constructor Summary
ConstructorsConstructorDescriptionPersistStream(byte[] array) PersistStream(int capacity) PersistStream(long address, long length) -
Method Summary
Modifier and TypeMethodDescriptionprotected longalloc(int size) byte[]voidwriteObject(Object obj) Methods inherited from class one.nio.serial.SerializeStream
close, newScopeMethods inherited from class one.nio.serial.DataStream
address, 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
-
Constructor Details
-
PersistStream
public PersistStream() -
PersistStream
public PersistStream(int capacity) -
PersistStream
public PersistStream(byte[] array) -
PersistStream
public PersistStream(long address, long length)
-
-
Method Details
-
toByteArray
public byte[] toByteArray() -
writeObject
- Specified by:
writeObjectin interfaceObjectOutput- Overrides:
writeObjectin classSerializeStream- Throws:
IOException
-
alloc
protected long alloc(int size) - Overrides:
allocin classDataStream
-