@Test public void testSAXSerializer() throws TTException, SAXException, IOException { final StringBuilder strBuilder = new StringBuilder(); final ContentHandler contHandler = new XMLFilterImpl() { @Override public void startDocument() { strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"); } @Override public void startElement(final String uri, final String localName, final String qName, final Attributes atts) throws SAXException { strBuilder.append("<" + qName); for (int i = 0; i < atts.getLength(); i++) { strBuilder.append(" " + atts.getQName(i)); strBuilder.append("=\"" + atts.getValue(i) + "\""); } strBuilder.append(">"); } @Override public void endElement(String uri, String localName, String qName) throws SAXException { strBuilder.append("</" + qName + ">"); } @Override public void characters(final char[] ch, final int start, final int length) throws SAXException { for (int i = start; i < start + length; i++) { strBuilder.append(ch[i]); } } }; final SAXSerializer serializer = new SAXSerializer(holder.getSession(), contHandler); serializer.call(); assertEquals(NodeElementTestHelper.XML, strBuilder.toString()); }
public SAXSerializer(final ISession paramSession, final ContentHandler paramHandler, final long... paramVersions) { super(paramSession, paramVersions); mContHandler = paramHandler; }
SAXSerializer extends AbsSerializer implements XMLReader { public SAXSerializer(final ISession paramSession, final ContentHandler paramHandler, final long... paramVersions) { super(paramSession, paramVersions); mContHandler = paramHandler; } }
SAXSerializer extends AbsSerializer implements XMLReader { public SAXSerializer(final ISession paramSession, final ContentHandler paramHandler, final long... paramVersions) { super(paramSession, paramVersions); mContHandler = paramHandler; } SAXSerializer(final ISession paramSession, final ContentHandler paramHandler,
        final long... paramVersions); }
SAXSerializer extends AbsSerializer implements XMLReader { public SAXSerializer(final ISession paramSession, final ContentHandler paramHandler, final long... paramVersions) { super(paramSession, paramVersions); mContHandler = paramHandler; } SAXSerializer(final ISession paramSession, final ContentHandler paramHandler,
        final long... paramVersions); static void main(final String... args); @Override ContentHandler getContentHandler(); @Override DTDHandler getDTDHandler(); @Override EntityResolver getEntityResolver(); @Override ErrorHandler getErrorHandler(); @Override boolean getFeature(final String mName); @Override Object getProperty(final String mName); @Override void parse(final InputSource mInput); @Override void parse(final String mSystemID); @Override void setContentHandler(final ContentHandler paramContentHandler); @Override void setDTDHandler(final DTDHandler paramHandler); @Override void setEntityResolver(final EntityResolver paramResolver); @Override void setErrorHandler(final ErrorHandler paramHandler); @Override void setFeature(final String paramName, final boolean paramValue); @Override void setProperty(final String paramName, final Object paramValue); }
SAXSerializer extends AbsSerializer implements XMLReader { public SAXSerializer(final ISession paramSession, final ContentHandler paramHandler, final long... paramVersions) { super(paramSession, paramVersions); mContHandler = paramHandler; } SAXSerializer(final ISession paramSession, final ContentHandler paramHandler,
        final long... paramVersions); static void main(final String... args); @Override ContentHandler getContentHandler(); @Override DTDHandler getDTDHandler(); @Override EntityResolver getEntityResolver(); @Override ErrorHandler getErrorHandler(); @Override boolean getFeature(final String mName); @Override Object getProperty(final String mName); @Override void parse(final InputSource mInput); @Override void parse(final String mSystemID); @Override void setContentHandler(final ContentHandler paramContentHandler); @Override void setDTDHandler(final DTDHandler paramHandler); @Override void setEntityResolver(final EntityResolver paramResolver); @Override void setErrorHandler(final ErrorHandler paramHandler); @Override void setFeature(final String paramName, final boolean paramValue); @Override void setProperty(final String paramName, final Object paramValue);  }