Package septogeddon.pluginquery.utils
Class ObjectBuffer
java.lang.Object
septogeddon.pluginquery.utils.DataBuffer
septogeddon.pluginquery.utils.ObjectBuffer
- All Implemented Interfaces:
DataInput
,DataOutput
,ObjectInput
,ObjectOutput
,AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class septogeddon.pluginquery.utils.DataBuffer
buf
-
Constructor Summary
ConstructorDescriptionObjectBuffer
(byte[] bytes) ObjectBuffer
(int initialSize) ObjectBuffer
(InputStream input) -
Method Summary
Methods inherited from class septogeddon.pluginquery.utils.DataBuffer
available, clear, copyTo, finalize, read, read, read, readBoolean, readByte, readBytes, readChar, readChars, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skip, skipBytes, toByteArray, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from interface java.io.ObjectOutput
write, write, write
-
Field Details
-
NULL_TYPE
public static final int NULL_TYPE- See Also:
-
INTEGER_TYPE
public static final int INTEGER_TYPE- See Also:
-
LONG_TYPE
public static final int LONG_TYPE- See Also:
-
DOUBLE_TYPE
public static final int DOUBLE_TYPE- See Also:
-
FLOAT_TYPE
public static final int FLOAT_TYPE- See Also:
-
SHORT_TYPE
public static final int SHORT_TYPE- See Also:
-
CHAR_TYPE
public static final int CHAR_TYPE- See Also:
-
BYTE_TYPE
public static final int BYTE_TYPE- See Also:
-
BOOLEAN_TYPE
public static final int BOOLEAN_TYPE- See Also:
-
ARRAY_TYPE
public static final int ARRAY_TYPE- See Also:
-
OBJECT_TYPE
public static final int OBJECT_TYPE- See Also:
-
-
Constructor Details
-
ObjectBuffer
public ObjectBuffer() -
ObjectBuffer
public ObjectBuffer(int initialSize) -
ObjectBuffer
- Throws:
IOException
-
ObjectBuffer
public ObjectBuffer(byte[] bytes)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceObjectInput
- Specified by:
close
in interfaceObjectOutput
-
flush
public void flush()- Specified by:
flush
in interfaceObjectOutput
-
readCasted
public <T> T readCasted() -
readObject
- Specified by:
readObject
in interfaceObjectInput
-
writeObject
- Specified by:
writeObject
in interfaceObjectOutput
-