com.northconcepts.datapipeline.core
Class MultiWriter
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataWriter
com.northconcepts.datapipeline.core.MultiWriter
public class MultiWriter
- extends DataWriter
Writes records to multiple DataWriter.
| 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 |
MultiWriter
public MultiWriter()
MultiWriter
public MultiWriter(DataWriter... sinks)
add
public MultiWriter add(DataWriter... sinks)
getCount
public int getCount()
remove
public MultiWriter remove(DataWriter sink)
removeAllDataSink
public MultiWriter removeAllDataSink()
get
public DataEndpoint get(int index)
open
public void open()
throws DataException
- Description copied from class:
DataEndpoint
- Makes this endpoint ready for reading or writing.
- Overrides:
open in class DataEndpoint
- Throws:
DataException
close
public void close()
throws DataException
- Description copied from class:
DataEndpoint
- Indicates that this endpoint has finished reading or writing.
- Overrides:
close in class DataEndpoint
- Throws:
DataException
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.