Package septogeddon.pluginquery.utils
Class InstanceBuffer
java.lang.Object
septogeddon.pluginquery.utils.InstanceBuffer
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionInstanceBuffer
(byte[] byteArray) InstanceBuffer
(byte[] byteArray, InstanceBuffer.IOFunction<InputStream, ObjectInput> inputFactory) InstanceBuffer
(Object... objects) InstanceBuffer
(Collection<?> collection) -
Method Summary
Modifier and TypeMethodDescriptionint
void
copyTo
(InstanceBuffer buffer) void
finalize()
<T> T
void
pushObject
(Object object) byte[]
byte[]
toByteArray
(InstanceBuffer.IOFunction<OutputStream, ObjectOutput> outputFactory)
-
Constructor Details
-
InstanceBuffer
public InstanceBuffer() -
InstanceBuffer
-
InstanceBuffer
-
InstanceBuffer
- Throws:
ClassNotFoundException
IOException
-
InstanceBuffer
public InstanceBuffer(byte[] byteArray, InstanceBuffer.IOFunction<InputStream, ObjectInput> inputFactory) throws ClassNotFoundException, IOException- Throws:
ClassNotFoundException
IOException
-
-
Method Details
-
available
public int available() -
pullObject
public <T> T pullObject() -
copyTo
-
pushObject
-
finalize
public void finalize() -
toByteArray
- Throws:
IOException
-
toByteArray
public byte[] toByteArray(InstanceBuffer.IOFunction<OutputStream, ObjectOutput> outputFactory) throws IOException- Throws:
IOException
-