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