org.apache.jsieve.util
Interface SieveToXml.Out

All Known Implementing Classes:
XmlOut
Enclosing class:
SieveToXml

public static interface SieveToXml.Out

Simple infoset output.

Note that the approach taken to namespaces is slightly different from both QName and SAX.


Method Summary
 void attribute(java.lang.CharSequence localName, java.lang.CharSequence uri, java.lang.CharSequence prefix, java.lang.CharSequence value)
          Outputs a attribute.
 void closeElement()
          Ends an XML Element.
 void content(java.lang.CharSequence text)
          Outputs body text.
 void openElement(java.lang.CharSequence localName, java.lang.CharSequence uri, java.lang.CharSequence prefix)
          Starts an XML element.
 

Method Detail

openElement

void openElement(java.lang.CharSequence localName,
                 java.lang.CharSequence uri,
                 java.lang.CharSequence prefix)
                 throws java.io.IOException
Starts an XML element.

Throws:
java.io.IOException - when output fails

attribute

void attribute(java.lang.CharSequence localName,
               java.lang.CharSequence uri,
               java.lang.CharSequence prefix,
               java.lang.CharSequence value)
               throws java.io.IOException
Outputs a attribute.

Parameters:
value - unescaped XML attribute content, not null
Throws:
java.io.IOException - when output fails

content

void content(java.lang.CharSequence text)
             throws java.io.IOException
Outputs body text. All attribute will be output before any body text so this call implicitly marks the end of any attributes for the element.

Parameters:
text - unescaped body text, not null
Throws:
java.io.IOException - when output fails

closeElement

void closeElement()
                  throws java.io.IOException
Ends an XML Element.

Throws:
java.io.IOException - when output fails


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.