public class AddText extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
file |
(package private) String |
key |
(package private) String |
text |
context| Constructor and Description |
|---|
AddText() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFile() |
String |
getKey() |
String |
getText() |
void |
init(ProcessContext ctx) |
Data |
process(Data input) |
void |
setFile(String file) |
void |
setKey(String key) |
void |
setText(String text) |
finish, resetStatepublic String getFile()
public void setFile(String file)
file - the file to setpublic String getText()
public void setText(String text)
text - the text to setpublic String getKey()
public void setKey(String key)
key - the key to setpublic void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionAbstractProcessor.init(stream.ProcessContext)public Data process(Data input)
Processor.process(stream.Data)Copyright © 2014. All rights reserved.