Package one.nio.serial
Class DeserializeStream
- java.lang.Object
-
- one.nio.serial.DataStream
-
- one.nio.serial.DeserializeStream
-
- All Implemented Interfaces:
java.io.DataInput,java.io.DataOutput,java.io.ObjectInput,java.io.ObjectOutput,java.lang.AutoCloseable
public class DeserializeStream extends DataStream
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object[]contextprotected intcontextSizeprivate static intINITIAL_CAPACITY-
Fields inherited from class one.nio.serial.DataStream
address, array, FIRST_BOOT_UID, limit, offset, REF_EMBEDDED, REF_NULL, REF_RECURSIVE, REF_RECURSIVE2
-
-
Constructor Summary
Constructors Constructor Description DeserializeStream(byte[] array)DeserializeStream(byte[] array, int length)DeserializeStream(long address, long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.CloseablenewScope()java.lang.ObjectreadObject()voidregister(java.lang.Object obj)-
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, readRef, readShort, readTo, readUnsignedByte, readUnsignedShort, readUTF, skip, skipBytes, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeFrom, writeInt, writeLong, writeObject, writeShort, writeUTF
-
-
-
-
Field Detail
-
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY
- See Also:
- Constant Field Values
-
context
protected java.lang.Object[] context
-
contextSize
protected int contextSize
-
-
Method Detail
-
readObject
public java.lang.Object readObject() throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readObjectin interfacejava.io.ObjectInput- Overrides:
readObjectin classDataStream- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.ObjectInput- Specified by:
closein interfacejava.io.ObjectOutput- Overrides:
closein classDataStream
-
register
public void register(java.lang.Object obj)
- Overrides:
registerin classDataStream
-
newScope
public java.io.Closeable newScope()
- Overrides:
newScopein classDataStream
-
-