| 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(File inputFile)
Run the processor for a given input file.
|
void |
run(File inputFile,
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(File inputFile) |
void |
setInput(InputStream inputStream) |
void |
setInput(String inputText) |
void |
setInput(URI inputURI) |
void |
setOutput(File outputFile)
Sets the output file.
|
void |
setOutput(Writer outputWriter) |
public void setInput(File inputFile)
public void setInput(String inputText)
public void setInput(URI inputURI)
public void setInput(InputStream inputStream)
public void setOutput(File outputFile)
outputFile - the output file (Use null to specify no output).public void setOutput(Writer outputWriter)
public void run(File inputFile, 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(File inputFile)
inputFile - document to process.public void run()
public 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.IndexOutOfBoundsException - if the index in invalid.Copyright © 2020. All rights reserved.