/** * Default constructor. * Initially this object wraps an XML Stream object, so _handler is never null. * That may change later to an HTML Stream object. */ public ToUnknownStream() { m_handler = new ToXMLStream(); }
/** * @see ExtendedContentHandler#endElement(String) */ public void endElement(String elemName) throws SAXException { endElement(null, null, elemName); }
final String version = getXMLVersion(); if (getOmitXMLDeclaration() == false) String encoding = Encodings.getMimeEncoding(getEncoding()); String standalone; standalone = " standalone=\"" + getStandalone() + "\""; if (m_doIndent) { if (m_standaloneWasSpecified || getDoctypePublic() != null || getDoctypeSystem() != null) {
/** * Receive notification of the end of a document. * * @throws org.xml.sax.SAXException Any SAX exception, possibly * wrapping another exception. * * @throws org.xml.sax.SAXException */ public void endDocument() throws org.xml.sax.SAXException { flushPending(); if (m_doIndent && !m_isprevtext) { try { outputLineSep(); } catch(IOException e) { throw new SAXException(e); } } flushWriter(); if (m_tracer != null) super.fireEndDoc(); }
closeStartTag(); m_elemContext.m_startTagOpen = false; if (shouldIndent()) indent();
return; flushPending(); startNonEscaping(); endNonEscaping(); closeStartTag(); m_elemContext.m_startTagOpen = false; startDocumentInternal(); if (shouldIndent()) indent();
boolean was_added = addAttributeAlways(uri, localName, rawName, type, value, xslAttribute); ensureAttributesNamespaceIsDeclared( uri, localName, addAttributeAlways(uri, localName, rawName, type, value, xslAttribute);
final String version = getXMLVersion(); if (getOmitXMLDeclaration() == false)
return; flushPending(); startNonEscaping(); endNonEscaping(); closeStartTag(); m_elemContext.m_startTagOpen = false; startDocumentInternal(); if (shouldIndent()) indent();
/** * Receive notification of the end of a document. * * @throws org.xml.sax.SAXException Any SAX exception, possibly * wrapping another exception. * * @throws org.xml.sax.SAXException */ public void endDocument() throws org.xml.sax.SAXException { flushPending(); if (m_doIndent && !m_isprevtext) { try { outputLineSep(); } catch(IOException e) { throw new SAXException(e); } } flushWriter(); if (m_tracer != null) super.fireEndDoc(); }
closeStartTag(); m_elemContext.m_startTagOpen = false; if (shouldIndent()) indent();
boolean was_added = addAttributeAlways(uri, localName, rawName, type, value, xslAttribute); ensureAttributesNamespaceIsDeclared( uri, localName, addAttributeAlways(uri, localName, rawName, type, value, xslAttribute);
final String version = getXMLVersion(); if (getOmitXMLDeclaration() == false)
return; flushPending(); startNonEscaping(); endNonEscaping(); closeStartTag(); m_elemContext.m_startTagOpen = false; startDocumentInternal(); if (shouldIndent()) indent();
final String version = getXMLVersion(); if (getOmitXMLDeclaration() == false) String encoding = Encodings.getMimeEncoding(getEncoding()); String standalone; standalone = " standalone=\"" + getStandalone() + "\""; if (m_doIndent) { if (m_standaloneWasSpecified || getDoctypePublic() != null || getDoctypeSystem() != null) {
/** * Receive notification of the end of a document. * * @throws org.xml.sax.SAXException Any SAX exception, possibly * wrapping another exception. * * @throws org.xml.sax.SAXException */ public void endDocument() throws org.xml.sax.SAXException { flushPending(); if (m_doIndent && !m_isprevtext) { try { outputLineSep(); } catch(IOException e) { throw new SAXException(e); } } flushWriter(); if (m_tracer != null) super.fireEndDoc(); }
closeStartTag(); m_elemContext.m_startTagOpen = false; if (shouldIndent()) indent();
boolean was_added = addAttributeAlways(uri, localName, rawName, type, value, xslAttribute); ensureAttributesNamespaceIsDeclared( uri, localName, addAttributeAlways(uri, localName, rawName, type, value, xslAttribute);