public class XLIFFProcessor
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
XLIFFProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IEventHandler handler)
Adds an event handler to this processor.
|
void |
remove(IEventHandler handler)
Removes a given handler from this processor.
|
void |
remove(int index)
Removes the handler at a given position.
|
void |
removeAll()
Removes all handlers from this processor.
|
void |
run()
Process the document.
|
void |
run(java.io.File inputFile)
Run the processor for a given input file.
|
void |
run(java.io.File inputFile,
java.io.File outputFile)
Run the processor for a given input file, and (if specified) re-write the modified document
in a given output file.
|
void |
setHandler(IEventHandler handler)
Sets a single event handler to make modifications on a selection of events.
|
void |
setInput(java.io.File inputFile) |
void |
setInput(java.io.InputStream inputStream) |
void |
setInput(java.lang.String inputText) |
void |
setInput(java.net.URI inputURI) |
void |
setOutput(java.io.File outputFile)
Sets the output file.
|
void |
setOutput(java.io.Writer outputWriter) |
public void setInput(java.io.File inputFile)
public void setInput(java.lang.String inputText)
public void setInput(java.net.URI inputURI)
public void setInput(java.io.InputStream inputStream)
public void setOutput(java.io.File outputFile)
outputFile - the output file (Use null to specify no output).public void setOutput(java.io.Writer outputWriter)
public void run(java.io.File inputFile,
java.io.File outputFile)
setInput(File),
setOutput(File) and then run().inputFile - document to modify.outputFile - resulting document. Use null to not produce an output file.InvalidParameterException - if the input and output files are the same.public void run(java.io.File inputFile)
inputFile - document to process.public void run()
run in interface java.lang.Runnablepublic void setHandler(IEventHandler handler)
handler - the handler to set.public void add(IEventHandler handler)
handler - the handler to add.public void removeAll()
public void remove(IEventHandler handler)
handler - the handler to remove.public void remove(int index)
index - the index of the handler to remove.java.lang.IndexOutOfBoundsException - if the index in invalid.