Package org.ojalgo.netio
Class TextLineWriter
java.lang.Object
org.ojalgo.netio.TextLineWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Consumer<CharSequence>
,ToFileWriter<CharSequence>
,AutoConsumer<CharSequence>
,AutoFunctional
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A reusable delimited "text line" builder.static interface
Nested classes/interfaces inherited from interface org.ojalgo.netio.ToFileWriter
ToFileWriter.Builder
-
Field Summary
FieldsFields inherited from interface org.ojalgo.type.function.AutoConsumer
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
newCSVLineBuilder
(char delimiter) newCSVLineBuilder
(String delimiter) static TextLineWriter
static TextLineWriter
of
(File file, OperatorWithException<OutputStream> filter) static TextLineWriter
of
(InMemoryFile file) static TextLineWriter
of
(InMemoryFile file, OperatorWithException<OutputStream> filter) <T> AutoConsumer
<T> withFormatter
(TextLineWriter.Formatter<T> formatter) void
write
(CharSequence itemToWrite) Write the item to the consumer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.type.function.AutoConsumer
accept, writeBatch
-
Field Details
-
myWriter
-
-
Constructor Details
-
TextLineWriter
-
-
Method Details
-
of
-
of
-
of
-
of
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoConsumer<CharSequence>
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceToFileWriter<CharSequence>
- Throws:
IOException
-
newCSVLineBuilder
- See Also:
-
newCSVLineBuilder
- See Also:
-
withFormatter
-
write
Description copied from interface:AutoConsumer
Write the item to the consumer.- Specified by:
write
in interfaceAutoConsumer<CharSequence>
- Parameters:
itemToWrite
- The item to be written
-