public class BinaryWriter extends AbstractWriter
| Modifier and Type | Field and Description |
|---|---|
(package private) long |
bytesWritten |
(package private) File |
current |
(package private) SimpleDateFormat |
dateFormat |
(package private) File |
file |
(package private) SimpleDateFormat |
fmt |
(package private) static org.slf4j.Logger |
log |
(package private) OutputStream |
os |
(package private) Time |
rotate |
(package private) SimpleDateFormat |
timeFormat |
keys, urlconditioncontext| Constructor and Description |
|---|
BinaryWriter() |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
void |
init(ProcessContext ctx) |
void |
setFile(File file) |
void |
write(Data input)
This method is actually responsible for writing the data item to the
output stream in the format that the implementing class supports.
|
getKeys, getUrl, processMatchingData, selectedKeys, setKeys, setUrlgetCondition, matches, process, setConditionfinish, resetStatestatic org.slf4j.Logger log
final SimpleDateFormat dateFormat
final SimpleDateFormat timeFormat
final SimpleDateFormat fmt
File file
File current
OutputStream os
long bytesWritten
Time rotate
public void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionAbstractProcessor.init(stream.ProcessContext)public void write(Data input) throws Exception
AbstractWriterwrite in class AbstractWriterExceptionAbstractWriter.write(stream.Data)public File getFile()
public void setFile(File file)
file - the file to setCopyright © 2018. All rights reserved.