com.generationjava.io.xml
Class JarvWriter

java.lang.Object
  |
  +--com.generationjava.io.xml.DelegatingXmlWriter
        |
        +--com.generationjava.io.xml.JarvWriter
All Implemented Interfaces:
org.xml.sax.ErrorHandler, XmlWriter

public class JarvWriter
extends DelegatingXmlWriter
implements org.xml.sax.ErrorHandler


Constructor Summary
JarvWriter(XmlWriter writer, org.iso_relax.verifier.VerifierHandler verifierHandler)
           
 
Method Summary
 void close()
          Close this writer.
 XmlWriter endEntity()
          End the current entity.
 void error(org.xml.sax.SAXParseException spe)
           
 void fatalError(org.xml.sax.SAXParseException spe)
           
 void warning(org.xml.sax.SAXParseException spe)
           
 XmlWriter writeAttribute(java.lang.String attr, java.lang.Object value)
          Write an attribute out for the current entity.
 XmlWriter writeEntity(java.lang.String name)
          Begin to write out an entity.
 XmlWriter writeText(java.lang.Object text)
          Output body text.
 
Methods inherited from class com.generationjava.io.xml.DelegatingXmlWriter
getWriter, writeCData, writeComment, writeEmptyEntity, writeEntityWithText, writeXmlVersion, writeXmlVersion, writeXmlVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarvWriter

public JarvWriter(XmlWriter writer,
                  org.iso_relax.verifier.VerifierHandler verifierHandler)
           throws java.io.IOException
Method Detail

writeEntity

public XmlWriter writeEntity(java.lang.String name)
                      throws java.io.IOException
Description copied from class: DelegatingXmlWriter
Begin to write out an entity. Unlike the helper tags, this tag will need to be ended with the endEntity method.

Specified by:
writeEntity in interface XmlWriter
Overrides:
writeEntity in class DelegatingXmlWriter
Parameters:
name - String name of tag
java.io.IOException

endEntity

public XmlWriter endEntity()
                    throws java.io.IOException
Description copied from class: DelegatingXmlWriter
End the current entity. This will throw an exception if it is called when there is not a currently open entity.

Specified by:
endEntity in interface XmlWriter
Overrides:
endEntity in class DelegatingXmlWriter
java.io.IOException

writeAttribute

public XmlWriter writeAttribute(java.lang.String attr,
                                java.lang.Object value)
                         throws java.io.IOException
Description copied from class: DelegatingXmlWriter
Write an attribute out for the current entity. Any xml characters in the value are escaped. Currently it does not actually throw the exception, but the api is set that way for future changes.

Specified by:
writeAttribute in interface XmlWriter
Overrides:
writeAttribute in class DelegatingXmlWriter
java.io.IOException

writeText

public XmlWriter writeText(java.lang.Object text)
                    throws java.io.IOException
Description copied from class: DelegatingXmlWriter
Output body text. Any xml characters are escaped.

Specified by:
writeText in interface XmlWriter
Overrides:
writeText in class DelegatingXmlWriter
java.io.IOException

error

public void error(org.xml.sax.SAXParseException spe)
Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException spe)
Specified by:
fatalError in interface org.xml.sax.ErrorHandler

warning

public void warning(org.xml.sax.SAXParseException spe)
Specified by:
warning in interface org.xml.sax.ErrorHandler

close

public void close()
           throws java.io.IOException
Description copied from class: DelegatingXmlWriter
Close this writer. It does not close the underlying writer, but does throw an exception if there are as yet unclosed tags.

Specified by:
close in interface XmlWriter
Overrides:
close in class DelegatingXmlWriter
java.io.IOException


Copyright © 2000-2003 GenerationJava. All Rights Reserved.