- java.lang.Object
-
- com.github.akurilov.commons.io.BinOutput<T>
-
- All Implemented Interfaces:
Output<T>,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
BinFileOutput
public abstract class BinOutput<T> extends java.lang.Object implements Output<T>
The item output implementation serializing something into the specified stream
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.ObjectOutputStreamoutput
-
Constructor Summary
Constructors Modifier Constructor Description protectedBinOutput(java.io.ObjectOutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intput(java.util.List<T> items)intput(java.util.List<T> buffer, int from, int to)Bulk put method for the items from the specified bufferbooleanput(T item)Write the data itemjava.lang.StringtoString()
-
-
-
Method Detail
-
put
public boolean put(T item) throws java.io.IOException
Description copied from interface:OutputWrite the data item
-
put
public int put(java.util.List<T> buffer, int from, int to) throws java.io.IOException
Description copied from interface:OutputBulk put method for the items from the specified buffer
-
put
public final int put(java.util.List<T> items) throws java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-