public abstract class WriterWrapper<D> extends Object implements DataWriter<D>
DataWriters that don't actually write records but instead wrap a
different DataWriter. Mostly useful to find all such wrappers when needed and to enforce changes in contracts.| Constructor and Description |
|---|
WriterWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(D record)
Write a data record.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbytesWritten, cleanup, commit, flush, getDataDescriptor, getMessageHandler, recordsWritten, writeEnvelopepublic final void write(D record) throws IOException
DataWriterwrite in interface DataWriter<D>record - data record to writeIOException - if there is anything wrong writing the record