com.northconcepts.datapipeline.core
Class LinedTextWriter
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataWriter
com.northconcepts.datapipeline.core.AbstractWriter
com.northconcepts.datapipeline.core.TextWriter
com.northconcepts.datapipeline.core.LinedTextWriter
- Direct Known Subclasses:
- CSVWriter, FixedWidthWriter
public abstract class LinedTextWriter
- extends TextWriter
Abstract super-class for writing records to a text stream.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, toString |
LinedTextWriter
public LinedTextWriter(File file)
LinedTextWriter
public LinedTextWriter(Writer writer)
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class TextWriter
getNewLine
public String getNewLine()
setNewLine
public LinedTextWriter setNewLine(String newLine)
writeRecord
protected final void writeRecord(Record record)
throws Throwable
- Specified by:
writeRecord in class AbstractWriter
- Throws:
Throwable
assembleLine
protected abstract void assembleLine(Record record,
StringBuffer lineBuffer)
throws Throwable
- Throws:
Throwable
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.