de.fu_berlin.ties.filter
Interface DocumentRewriter

All Known Implementing Classes:
PredictionRewriter, PredictionRewriter2

public interface DocumentRewriter

An interface for classes that rewrite documents, for example for adding semantic information. Document rewriters must not modify the textual content of a document, they may only modify XML elements and attributes.

Version:
$Revision: 1.3 $, $Date: 2006/10/21 16:04:19 $, $Author: siefkes $
Author:
Christian Siefkes

Method Summary
 Document rewrite(Document doc, File filename)
          Rewrites a document.
 

Method Detail

rewrite

Document rewrite(Document doc,
                 File filename)
                 throws IOException,
                        ProcessingException
Rewrites a document.

Parameters:
doc - the document to modify
filename - the name of the document
Returns:
the modified document; this object may or may not be identical to the document passed it
Throws:
IOException - if an I/O error occurs
ProcessingException - if an error occurs during rewriting


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.