-
- All Superinterfaces:
java.lang.AutoCloseable,java.util.function.Consumer<I>
- 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.lang.AutoCloseable, java.util.function.Consumer<I>The Java objects output supporting the batch calls
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(I item)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
-
accept
default void accept(I item)
- Specified by:
acceptin interfacejava.util.function.Consumer<I>
-
put
boolean put(I item)
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)
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)
-
-