com.northconcepts.datapipeline.file
Class FileWriter
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataWriter
com.northconcepts.datapipeline.file.FileWriter
public class FileWriter
- extends DataWriter
Writes records to a binary stream that can be later read using a FileReader.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, open, resetRecordCount, toString |
FileWriter
public FileWriter(File file)
FileWriter
public FileWriter(DataOutput out)
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 DataWriter
close
public void close()
- Description copied from class:
DataEndpoint
- Indicates that this endpoint has finished reading or writing.
- Overrides:
close in class DataEndpoint
writeImpl
protected void writeImpl(Record record)
throws Throwable
- Description copied from class:
DataWriter
- Overridden by subclasses to write the specified record to this
DataWriter.
- Specified by:
writeImpl in class DataWriter
- Throws:
Throwable
Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.