Class TabDelimitedOutput
java.lang.Object
com.invirgance.convirgance.output.DelimitedOutput
com.invirgance.convirgance.output.TabDelimitedOutput
- All Implemented Interfaces:
Output
Provides support for writing tab-delimited (tsv) files as a stream of data.
Convenience object for working with tab-delimited files. Extends
DelimitedOutput and sets the delimiter character to the '\t' character.- Author:
- timur
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TabeDelimitedOutputTabDelimitedOutput(String... columns) Creates a TabDelimitedOuput with specified columns -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDelimiter(char delimiter) Throws an exception when called to prevent the delimiter being changed from '\t'.Methods inherited from class com.invirgance.convirgance.output.DelimitedOutput
getContentType, getDelimiter, getEncoding, setEncoding, write
-
Constructor Details
-
TabDelimitedOutput
public TabDelimitedOutput()Creates a new TabeDelimitedOutput -
TabDelimitedOutput
Creates a TabDelimitedOuput with specified columns- Parameters:
columns- a String array of column names
-
-
Method Details
-
setDelimiter
public void setDelimiter(char delimiter) Throws an exception when called to prevent the delimiter being changed from '\t'.- Overrides:
setDelimiterin classDelimitedOutput- Parameters:
delimiter- the new delimiter to set- Throws:
ConvirganceException- thrown always to prevent the delimiter from being changed
-