public final class File2Lines extends AbstractTransformation<File,String>
outputPortinputPortlogger| Constructor and Description |
|---|
File2Lines()
charset = UTF-8
|
File2Lines(String charset) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(File textFile)
Contains the logic of this stage and is invoked (possibly multiple times) by the framework.
|
String |
getCharset() |
getOutputPortcreateInputPort, execute, getInputPortabort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompletedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInputPortpublic File2Lines()
public File2Lines(String charset)
charset - to be used when interpreting text filesprotected void execute(File textFile)
AbstractConsumerStageexecute in class AbstractConsumerStage<File>textFile - the next non-null element from the (only) input port of this stagepublic String getCharset()
Copyright © 2015–2020. All rights reserved.