public abstract class AbstractRewriter extends Object implements ILinkRewriter
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)
|
protected AbstractRewriter(ImportMapping mapping, boolean export)
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.Copyright © 2013 TextGrid. All Rights Reserved.