private void flush() { try { if (m_firstTagNotEmitted) { emitFirstTag(); } if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } } catch(SAXException e) { throw new RuntimeException(e.toString()); } }
private void flush() { try { if (m_firstTagNotEmitted) { emitFirstTag(); } if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } } catch(SAXException e) { throw new RuntimeException(e.toString()); } }
/** * Pass the call on to the underlying handler * @see ExtendedLexicalHandler#comment(String) */ public void comment(String comment) throws SAXException { if (m_firstTagNotEmitted && m_firstElementName != null) { emitFirstTag(); } else if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } m_handler.comment(comment); }
/** * Pass the call on to the underlying handler * @see ExtendedLexicalHandler#comment(String) */ public void comment(String comment) throws SAXException { if (m_firstTagNotEmitted && m_firstElementName != null) { emitFirstTag(); } else if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } m_handler.comment(comment); }
public void parse() throws IOException, SAXException { if (_dom != null) { boolean isIncomplete = (_dom.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE); if (isIncomplete) { _handler.startDocument(); parse(_dom); _handler.endDocument(); } else { parse(_dom); } } }
/************************************************************************ * Multiple output document extension. * See compiler/TransletOutput for actual implementation. ************************************************************************/ public SerializationHandler openOutputHandler(String filename, boolean append) throws TransletException { try { final TransletOutputHandlerFactory factory = TransletOutputHandlerFactory.newInstance(); String dirStr = new File(filename).getParent(); if ((null != dirStr) && (dirStr.length() > 0)) { File dir = new File(dirStr); dir.mkdirs(); } factory.setEncoding(_encoding); factory.setOutputMethod(_method); factory.setWriter(new FileWriter(filename, append)); factory.setOutputType(TransletOutputHandlerFactory.STREAM); final SerializationHandler handler = factory.getSerializationHandler(); transferOutputSettings(handler); handler.startDocument(); return handler; } catch (Exception e) { throw new TransletException(e); } }
this.fSerializer.startDocument();
this.fSerializer.startDocument();
flistener.startDocument();
this.fSerializer.startDocument();
this.fSerializer.startDocument();
_handler.startDocument(); Node next = node.getFirstChild(); while (next != null) {
m_handler.startDocument(); m_needToCallStartDocument = false;
m_handler.startDocument(); m_needToCallStartDocument = false;
/** * Pass the call on to the underlying handler * @see ExtendedLexicalHandler#comment(String) */ public void comment(String comment) throws SAXException { if (m_firstTagNotEmitted && m_firstElementName != null) { emitFirstTag(); } else if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } m_handler.comment(comment); }
/** * Pass the call on to the underlying handler * @see ExtendedLexicalHandler#comment(String) */ public void comment(String comment) throws SAXException { if (m_firstTagNotEmitted && m_firstElementName != null) { emitFirstTag(); } else if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } m_handler.comment(comment); }
/** * Pass the call on to the underlying handler * @see ExtendedLexicalHandler#comment(String) */ public void comment(String comment) throws SAXException { if (m_firstTagNotEmitted && m_firstElementName != null) { emitFirstTag(); } else if (m_needToCallStartDocument) { m_handler.startDocument(); m_needToCallStartDocument = false; } m_handler.comment(comment); }
public void parse() throws IOException, SAXException { if (_dom != null) { boolean isIncomplete = (_dom.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE); if (isIncomplete) { _handler.startDocument(); parse(_dom); _handler.endDocument(); } else { parse(_dom); } } }