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