|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.textgrid.utils.linkrewriter.AbstractRewriter
public abstract class AbstractRewriter extends Object implements ILinkRewriter
Abstract implementation of ILinkRewriter
that can serve as a base
class.
Modifier | Constructor and Description |
---|---|
protected |
AbstractRewriter(ImportMapping mapping,
boolean export)
|
Modifier and Type | Method and Description |
---|---|
ImportMapping |
getMapping()
Returns the mapping object that describes the neccessary rewrite actions |
boolean |
isExport()
If this is true, the rewriting operation is intended for an export situation, i.e. |
abstract void |
rewrite(InputStream input,
OutputStream output)
Copies contents from input to output, rewriting links according to the mapping and the export setting, in an implementation dependent manner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractRewriter(ImportMapping mapping, boolean export)
Method Detail |
---|
public ImportMapping getMapping()
ILinkRewriter
getMapping
in interface ILinkRewriter
public boolean isExport()
ILinkRewriter
isExport
in interface ILinkRewriter
public abstract void rewrite(InputStream input, OutputStream output) throws IOException, XMLStreamException
ILinkRewriter
rewrite
in interface ILinkRewriter
input
- the stream from which the rewriter readsoutput
- the stream to which the rewriter writes the rewritten codeIOException
- if reading or writing failsXMLStreamException
- on fatal errors during XML processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |