-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Subinterfaces:
FileOutput<T>,IoBuffer<T>
- All Known Implementing Classes:
ArrayOutput,BinFileOutput,BinOutput,CircularArrayOutput,CircularListOutput,LimitedQueueBuffer,ListOutput,TextFileOutput,TextStreamOutput
public interface Output<I> extends java.io.CloseableThe Java objects output supporting the batch calls
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Input<I>getInput()Make aInputinstance from this.booleanput(I item)Write the data itemintput(java.util.List<I> buffer)intput(java.util.List<I> buffer, int from, int to)Bulk put method for the items from the specified buffer
-
-
-
Method Detail
-
put
boolean put(I item) throws java.io.IOException
Write the data item- Parameters:
item- the item to put- Throws:
java.io.IOException- if fails some-why
-
put
int put(java.util.List<I> buffer, int from, int to) throws java.io.IOException
Bulk put method for the items from the specified buffer- Parameters:
buffer- the buffer containing the items to put- Returns:
- the count of the items successfully written
- Throws:
java.io.IOException
-
put
int put(java.util.List<I> buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
-