org.apache.cocoon.parser
Interface Parser

All Known Implementing Classes:
IBMXMLParser, OpenXMLParser, SunXMLParser

public abstract interface Parser

This class must be implemented by the services that implement XML parsing/formatting capabilites in order to be used by Cocoon.

Version:
$Revision: 1.1.1.1 $ $Date: 1999/03/09 23:09:28 $
Author:
Stefano Mazzocchi

Method Summary
 org.w3c.dom.Document createEmptyDocument()
           
 boolean isIgnorableWhitespace(org.w3c.dom.Text text)
           
 org.w3c.dom.Document parse(java.io.Reader in)
          Creates a DOM tree parsing the given input stream.
 void print(org.w3c.dom.Document document, java.io.Writer out)
          Formats the given DOM tree to an output stream.
 

Method Detail

parse

public org.w3c.dom.Document parse(java.io.Reader in)
                           throws java.io.IOException
Creates a DOM tree parsing the given input stream.

print

public void print(org.w3c.dom.Document document,
                  java.io.Writer out)
           throws java.io.IOException
Formats the given DOM tree to an output stream.

createEmptyDocument

public org.w3c.dom.Document createEmptyDocument()

isIgnorableWhitespace

public boolean isIgnorableWhitespace(org.w3c.dom.Text text)

Copyright (c) 1998 The Java Apache Project