@Test public void testXMLSerializer() throws Exception { final INodeWriteTrx wtx = new NodeWriteTrx(holder.getSession(), holder.getSession().beginBucketWtx(), HashKind.Rolling); NodeElementTestHelper.DocumentCreater.create(wtx); wtx.commit(); wtx.close(); final ByteArrayOutputStream out = new ByteArrayOutputStream(); final XMLSerializer serializer = new XMLSerializerBuilder(holder.getSession(), out).build(); serializer.call(); String compareTo = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" + "<p:a xmlns:p=\"ns\" i=\"j\">oops1<b>foo<c/></b>oops2<b p:x=\"y\"><c/>bar</b>oops3</p:a>"; assertEquals(compareTo, out.toString()); }
private XMLSerializer(final ISession paramSession, final long paramNodeKey, final XMLSerializerBuilder paramBuilder, final long... paramVersions) { super(paramSession, paramNodeKey, paramVersions); mOut = new BufferedOutputStream(paramBuilder.mStream, 4096); mIndent = paramBuilder.mIndent; mSerializeXMLDeclaration = paramBuilder.mDeclaration; mSerializeRest = paramBuilder.mREST; mSerializeId = paramBuilder.mID; mIndentSpaces = paramBuilder.mIndentSpaces; }
XMLSerializer extends AbsSerializer { private XMLSerializer(final ISession paramSession, final long paramNodeKey, final XMLSerializerBuilder paramBuilder, final long... paramVersions) { super(paramSession, paramNodeKey, paramVersions); mOut = new BufferedOutputStream(paramBuilder.mStream, 4096); mIndent = paramBuilder.mIndent; mSerializeXMLDeclaration = paramBuilder.mDeclaration; mSerializeRest = paramBuilder.mREST; mSerializeId = paramBuilder.mID; mIndentSpaces = paramBuilder.mIndentSpaces; } }
XMLSerializer extends AbsSerializer { private XMLSerializer(final ISession paramSession, final long paramNodeKey, final XMLSerializerBuilder paramBuilder, final long... paramVersions) { super(paramSession, paramNodeKey, paramVersions); mOut = new BufferedOutputStream(paramBuilder.mStream, 4096); mIndent = paramBuilder.mIndent; mSerializeXMLDeclaration = paramBuilder.mDeclaration; mSerializeRest = paramBuilder.mREST; mSerializeId = paramBuilder.mID; mIndentSpaces = paramBuilder.mIndentSpaces; } private  XMLSerializer(final ISession paramSession, final long paramNodeKey,
        final XMLSerializerBuilder paramBuilder, final long... paramVersions); }
XMLSerializer extends AbsSerializer { private XMLSerializer(final ISession paramSession, final long paramNodeKey, final XMLSerializerBuilder paramBuilder, final long... paramVersions) { super(paramSession, paramNodeKey, paramVersions); mOut = new BufferedOutputStream(paramBuilder.mStream, 4096); mIndent = paramBuilder.mIndent; mSerializeXMLDeclaration = paramBuilder.mDeclaration; mSerializeRest = paramBuilder.mREST; mSerializeId = paramBuilder.mID; mIndentSpaces = paramBuilder.mIndentSpaces; } private  XMLSerializer(final ISession paramSession, final long paramNodeKey,
        final XMLSerializerBuilder paramBuilder, final long... paramVersions); static void main(final String... args); }
XMLSerializer extends AbsSerializer { private XMLSerializer(final ISession paramSession, final long paramNodeKey, final XMLSerializerBuilder paramBuilder, final long... paramVersions) { super(paramSession, paramNodeKey, paramVersions); mOut = new BufferedOutputStream(paramBuilder.mStream, 4096); mIndent = paramBuilder.mIndent; mSerializeXMLDeclaration = paramBuilder.mDeclaration; mSerializeRest = paramBuilder.mREST; mSerializeId = paramBuilder.mID; mIndentSpaces = paramBuilder.mIndentSpaces; } private  XMLSerializer(final ISession paramSession, final long paramNodeKey,
        final XMLSerializerBuilder paramBuilder, final long... paramVersions); static void main(final String... args);  }