All Implemented Interfaces:
AutoCloseable
, org.refcodes.io.RowWriter<String []>
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<org.refcodes.textual.CsvMixin>
, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator
, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
, org.refcodes.mixin.TrimAccessor
, org.refcodes.mixin.TrimAccessor.TrimBuilder<org.refcodes.textual.CsvMixin>
, org.refcodes.mixin.TrimAccessor.TrimMutator
, org.refcodes.mixin.TrimAccessor.TrimProperty
, HeaderAccessor <String >
, RecordWriter <String >
, org.refcodes.textual.CsvEscapeModeAccessor
, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeBuilder<org.refcodes.textual.CsvMixin>
, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeMutator
, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeProperty
, org.refcodes.textual.CsvMixin
Author:
steiner
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.textual.CsvEscapeModeAccessor
org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeBuilder<B extends org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeBuilder<?>>, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeMutator, org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.TrimAccessor
org.refcodes.mixin.TrimAccessor.TrimBuilder<B extends org.refcodes.mixin.TrimAccessor.TrimBuilder<B>>, org.refcodes.mixin.TrimAccessor.TrimMutator, org.refcodes.mixin.TrimAccessor.TrimProperty
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Methods inherited from class org.refcodes.tabular.CsvRecordWriter
clearCommentPrefixes , close , getCommentPrefixes , getCsvEscapeMode , getDelimiter , getHeader , isTrim , parseHeader , setCommentPrefixes , setCsvEscapeMode , setDelimiter , setTrim , writeComment , writeHeader , writeHeader , writeHeader , writeHeaderComment , writeHeaderComment , writeHeaderComment , writeNext , writeNext
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Methods inherited from interface org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeProperty
letCsvEscapeMode
Methods inherited from interface org.refcodes.textual.CsvMixin
isComment, toComment, uncomment
Methods inherited from interface org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
letDelimiter
Methods inherited from interface org.refcodes.mixin.TrimAccessor.TrimProperty
letTrim
Constructor Details
CsvStringRecordWriter
public CsvStringRecordWriter (String [] aHeader,
PrintStream aPrintStream,
char aCsvDelimiter)
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aPrintStream
- The PrintStream
to be used for printing
output.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aFile
- the File
to which to write.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
Throws:
FileNotFoundException
- If the given file object does not denote an
existing, writable regular file and a new regular file of that
name cannot be created, or if some other error occurs while
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aFile
- the File
to which to write.
aEncoding
- The Charset
for the character encoding to use.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
Throws:
IOException
- in case the file is not found or the encoding is not
supported.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aFile
- the File
to which to write.
aEncoding
- The Charset
for the character encoding to use.
Throws:
IOException
- in case the file is not found or the encoding is not
supported.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aFile
- the File
to which to write.
Throws:
FileNotFoundException
- If the given file object does not denote an
existing, writable regular file and a new regular file of that
name cannot be created, or if some other error occurs while
opening or creating the file.
CsvStringRecordWriter
public CsvStringRecordWriter (String [] aHeader,
OutputStream aOutputStream,
char aCsvDelimiter)
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aOutputStream
- The OutputStream
where to write to.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aOutputStream
- The OutputStream
where to write to.
aEncoding
- The Charset
for the character encoding to use.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
Throws:
UnsupportedEncodingException
- thrown in case an unsupported
encoding (Charset
) has been provided.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aOutputStream
- The OutputStream
where to write to.
aEncoding
- The Charset
for the character encoding to use.
Throws:
UnsupportedEncodingException
- thrown in case an unsupported
encoding (Charset
) has been provided.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aOutputStream
- The OutputStream
where to write to.
CsvStringRecordWriter
Parameters:
aHeader
- The String
elements representing the header used
for logging in the correct format.
aPrintStream
- The PrintStream
to be used for printing.
CsvStringRecordWriter
public CsvStringRecordWriter (PrintStream aPrintStream,
char aCsvDelimiter,
String ... aHeader)
Parameters:
aPrintStream
- The PrintStream
to be used for printing
output.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
aHeader
- The String
elements representing the header used
for logging in the correct format.
CsvStringRecordWriter
Parameters:
aFile
- the File
to which to write.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
aHeader
- The String
elements representing the header used
for logging in the correct format.
Throws:
FileNotFoundException
- If the given file object does not denote an
existing, writable regular file and a new regular file of that
name cannot be created, or if some other error occurs while
CsvStringRecordWriter
Parameters:
aFile
- the File
to which to write.
aEncoding
- The Charset
for the character encoding to use.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
aHeader
- The String
elements representing the header used
for logging in the correct format.
Throws:
IOException
- in case the file is not found or the encoding is not
supported.
CsvStringRecordWriter
Parameters:
aFile
- the File
to which to write.
aEncoding
- The Charset
for the character encoding to use.
aHeader
- The String
elements representing the header used
for logging in the correct format.
Throws:
IOException
- in case the file is not found or the encoding is not
supported.
CsvStringRecordWriter
Parameters:
aFile
- the File
to which to write.
aHeader
- The String
elements representing the header used
for logging in the correct format.
Throws:
FileNotFoundException
- If the given file object does not denote an
existing, writable regular file and a new regular file of that
name cannot be created, or if some other error occurs while
opening or creating the file.
CsvStringRecordWriter
public CsvStringRecordWriter (OutputStream aOutputStream,
char aCsvDelimiter,
String ... aHeader)
Parameters:
aOutputStream
- The OutputStream
where to write to.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
aHeader
- The String
elements representing the header used
for logging in the correct format.
CsvStringRecordWriter
Parameters:
aOutputStream
- The OutputStream
where to write to.
aEncoding
- The Charset
for the character encoding to use.
aCsvDelimiter
- The separator to be used when separating the CSV
values in the log output.
aHeader
- The String
elements representing the header used
for logging in the correct format.
Throws:
UnsupportedEncodingException
- thrown in case an unsupported
encoding (Charset
) has been provided.
CsvStringRecordWriter
Parameters:
aOutputStream
- The OutputStream
where to write to.
aEncoding
- The Charset
for the character encoding to use.
aHeader
- The String
elements representing the header used
for logging in the correct format.
Throws:
UnsupportedEncodingException
- thrown in case an unsupported
encoding (Charset
) has been provided.
CsvStringRecordWriter
Parameters:
aOutputStream
- The OutputStream
where to write to.
aHeader
- The String
elements representing the header used
for logging in the correct format.
CsvStringRecordWriter
Parameters:
aPrintStream
- The PrintStream
to be used for printing.
aHeader
- The String
elements representing the header used
for logging in the correct format.
CsvStringRecordWriter
public CsvStringRecordWriter (OutputStream aOutputStream,
char aCsvDelimiter)
CsvStringRecordWriter
public CsvStringRecordWriter (PrintStream aPrintStream,
char aCsvDelimiter)
Method Details
withTrim
Specified by:
withTrim
in interface org.refcodes.mixin.TrimAccessor.TrimBuilder<org.refcodes.textual.CsvMixin>
Overrides:
withTrim
in class CsvRecordWriter <String >
withCsvEscapeMode
Specified by:
withCsvEscapeMode
in interface org.refcodes.textual.CsvEscapeModeAccessor.CsvEscapeModeBuilder<org.refcodes.textual.CsvMixin>
Overrides:
withCsvEscapeMode
in class CsvRecordWriter <String >
withDelimiter
Specified by:
withDelimiter
in interface org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<org.refcodes.textual.CsvMixin>
Overrides:
withDelimiter
in class CsvRecordWriter <String >