info.textgrid.utils.linkrewriter
Class XMLLinkRewriter

java.lang.Object
  extended by info.textgrid.utils.linkrewriter.AbstractRewriter
      extended by info.textgrid.utils.linkrewriter.XMLLinkRewriter
All Implemented Interfaces:
ILinkRewriter

public class XMLLinkRewriter
extends AbstractRewriter
implements ILinkRewriter


Constructor Summary
Modifier Constructor and Description
protected XMLLinkRewriter(ImportMapping mapping, boolean export)
           
 
Method Summary
Modifier and Type Method and Description
 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 info.textgrid.utils.linkrewriter.AbstractRewriter
getMapping, isExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.textgrid.utils.linkrewriter.ILinkRewriter
getMapping, isExport
 

Constructor Detail

XMLLinkRewriter

protected XMLLinkRewriter(ImportMapping mapping,
                          boolean export)
Method Detail

rewrite

public void rewrite(InputStream input,
                    OutputStream output)
             throws IOException,
                    XMLStreamException
Description copied from interface: ILinkRewriter
Copies contents from input to output, rewriting links according to the mapping and the export setting, in an implementation dependent manner.

Specified by:
rewrite in interface ILinkRewriter
Specified by:
rewrite in class AbstractRewriter
Parameters:
input - the stream from which the rewriter reads
output - the stream to which the rewriter writes the rewritten code
Throws:
IOException - if reading or writing fails
XMLStreamException - on fatal errors during XML processing.


Copyright © 2012 TextGrid. All Rights Reserved.