Interface ContentWriter

All Superinterfaces:
AutoCloseable, Closeable, ContentHandler, LexicalHandler
All Known Implementing Classes:
AbstractContentWriter, AbstractXDBXWriter, ContentWriterAdapter, SAX3WriterXml, ScopicManifest5ContentParser, XDBXWriterXml

public interface ContentWriter extends ContentHandler, LexicalHandler, Closeable
ContentWriter is ContentHandler for writing sax events.
Version:
1.0 Apr 30, 2013
Author:
Willem Cazander
  • Method Details

    • startElementEnd

      void startElementEnd(String uri, String localName, String name, Attributes atts) throws SAXException
      Starts and ends an element in one call.
      Parameters:
      uri - The uri of the element.
      localName - The localName of the element.
      name - The name of the element.
      atts - The attributes of the element.
      Throws:
      SAXException - When IOException is thrown.
    • comment

      void comment(String text) throws SAXException
      Writes a String as xml comment.
      Parameters:
      text - The text to have embedded as comment in xml.
      Throws:
      SAXException - On error.
    • ignorableWhitespace

      void ignorableWhitespace(String text) throws SAXException
      Writes a whitespace String to the body.
      Parameters:
      text - The String of whitespace to write.
      Throws:
      SAXException - On error.
    • ignorableWhitespace

      void ignorableWhitespace(char c) throws SAXException
      Writes a whitespace character to the body.
      Parameters:
      c - The character to write.
      Throws:
      SAXException - On error;
    • characters

      void characters(String text) throws SAXException
      Writes a String in the body.
      Parameters:
      text - The text to write.
      Throws:
      SAXException - On error.
    • characters

      void characters(char c) throws SAXException
      Writes a single character in the body body.
      Parameters:
      c - The character to write.
      Throws:
      SAXException - On error.