public ContentHandler asContentHandler() throws IOException { prepare(); return this; }
public DocumentHandler asDocumentHandler() throws IOException { prepare(); return this; }
public DOMSerializer asDOMSerializer() throws IOException { prepare(); return this; }
public DOMSerializer asDOMSerializer() throws IOException { prepare(); return this; }
public DocumentHandler asDocumentHandler() throws IOException { prepare(); return this; }
public ContentHandler asContentHandler() throws IOException { prepare(); return this; }
public void startDocument() throws SAXException { try { prepare(); } catch ( IOException except ) { throw new SAXException( except.toString() ); } // Nothing to do here. All the magic happens in startDocument(String) }
public void startDocument() throws SAXException { try { prepare(); } catch ( IOException except ) { throw new SAXException( except.toString() ); } // Nothing to do here. All the magic happens in startDocument(String) }
/** * Serializes the DOM element using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param elem The element to serialize * @throws IOException An I/O exception occured while * serializing */ public void serialize( Element elem ) throws IOException { reset(); prepare(); serializeNode( elem ); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes the DOM document fragmnt using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param elem The element to serialize * @throws IOException An I/O exception occured while * serializing */ public void serialize( DocumentFragment frag ) throws IOException { reset(); prepare(); serializeNode( frag ); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes the DOM document fragmnt using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param elem The element to serialize * @throws IOException An I/O exception occured while * serializing */ public void serialize( DocumentFragment frag ) throws IOException { reset(); prepare(); serializeNode( frag ); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes the DOM element using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param elem The element to serialize * @throws IOException An I/O exception occured while * serializing */ public void serialize( Element elem ) throws IOException { reset(); prepare(); serializeNode( elem ); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes a node using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param node Node to serialize * @throws IOException An I/O exception occured while serializing */ public void serialize( Node node ) throws IOException { reset(); prepare(); serializeNode( node ); //Print any PIs and Comments which appeared in 'node' serializePreRoot(); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes a node using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param node Node to serialize * @throws IOException An I/O exception occured while serializing */ public void serialize( Node node ) throws IOException { reset(); prepare(); serializeNode( node ); //Print any PIs and Comments which appeared in 'node' serializePreRoot(); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes the DOM document using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param doc The document to serialize * @throws IOException An I/O exception occured while * serializing */ public void serialize( Document doc ) throws IOException { reset(); prepare(); serializeNode( doc ); serializePreRoot(); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }
/** * Serializes the DOM document using the previously specified * writer and output format. Throws an exception only if * an I/O exception occured while serializing. * * @param doc The document to serialize * @throws IOException An I/O exception occured while * serializing */ public void serialize( Document doc ) throws IOException { reset(); prepare(); serializeNode( doc ); serializePreRoot(); _printer.flush(); if ( _printer.getException() != null ) throw _printer.getException(); }