@Test public void testSerializeXML() throws TTException, IOException { final IStorage storage = Storage.openStorage(DBFILE.getParentFile()); final ISession session = storage.getSession(new SessionConfiguration(DBFILE.getName(), StandardSettings.KEY)); final OutputStream out = new ByteArrayOutputStream(); assertNotNull("test serialize xml", WorkerHelper.serializeXML(session, out, true, true, null)); session.close(); storage.close(); out.close(); }
public static XMLSerializer serializeXML(final ISession session, final OutputStream out, final boolean serializeXMLDec, final boolean serializeRest, final Long revision) { final XMLSerializerBuilder builder; if (revision == null) builder = new XMLSerializerBuilder(session, out); else builder = new XMLSerializerBuilder(session, out, revision); builder.setREST(serializeRest); builder.setID(serializeRest); builder.setDeclaration(serializeXMLDec); final XMLSerializer serializer = builder.build(); return serializer; }
WorkerHelper { public static XMLSerializer serializeXML(final ISession session, final OutputStream out, final boolean serializeXMLDec, final boolean serializeRest, final Long revision) { final XMLSerializerBuilder builder; if (revision == null) builder = new XMLSerializerBuilder(session, out); else builder = new XMLSerializerBuilder(session, out, revision); builder.setREST(serializeRest); builder.setID(serializeRest); builder.setDeclaration(serializeXMLDec); final XMLSerializer serializer = builder.build(); return serializer; } }
WorkerHelper { public static XMLSerializer serializeXML(final ISession session, final OutputStream out, final boolean serializeXMLDec, final boolean serializeRest, final Long revision) { final XMLSerializerBuilder builder; if (revision == null) builder = new XMLSerializerBuilder(session, out); else builder = new XMLSerializerBuilder(session, out, revision); builder.setREST(serializeRest); builder.setID(serializeRest); builder.setDeclaration(serializeXMLDec); final XMLSerializer serializer = builder.build(); return serializer; } private  WorkerHelper(); }
WorkerHelper { public static XMLSerializer serializeXML(final ISession session, final OutputStream out, final boolean serializeXMLDec, final boolean serializeRest, final Long revision) { final XMLSerializerBuilder builder; if (revision == null) builder = new XMLSerializerBuilder(session, out); else builder = new XMLSerializerBuilder(session, out, revision); builder.setREST(serializeRest); builder.setID(serializeRest); builder.setDeclaration(serializeXMLDec); final XMLSerializer serializer = builder.build(); return serializer; } private  WorkerHelper(); static void shredInputStream(final INodeWriteTrx wtx, final InputStream value,
        final EShredderInsert child); static XMLSerializer serializeXML(final ISession session, final OutputStream out,
        final boolean serializeXMLDec, final boolean serializeRest, final Long revision); static XMLSerializer serializeXML(final ISession session, final OutputStream out,
        final boolean serializeXMLDec, final boolean serializeRest, final Long nodekey, final Long revision); StringBuilder createStringBuilderObject(); static void closeWTX(final boolean abortTransaction, final INodeWriteTrx wtx, final ISession ses); static void closeRTX(final INodeReadTrx rtx, final ISession ses); EIdAccessType validateAccessType(final String accessType); static WorkerHelper getInstance(); }
WorkerHelper { public static XMLSerializer serializeXML(final ISession session, final OutputStream out, final boolean serializeXMLDec, final boolean serializeRest, final Long revision) { final XMLSerializerBuilder builder; if (revision == null) builder = new XMLSerializerBuilder(session, out); else builder = new XMLSerializerBuilder(session, out, revision); builder.setREST(serializeRest); builder.setID(serializeRest); builder.setDeclaration(serializeXMLDec); final XMLSerializer serializer = builder.build(); return serializer; } private  WorkerHelper(); static void shredInputStream(final INodeWriteTrx wtx, final InputStream value,
        final EShredderInsert child); static XMLSerializer serializeXML(final ISession session, final OutputStream out,
        final boolean serializeXMLDec, final boolean serializeRest, final Long revision); static XMLSerializer serializeXML(final ISession session, final OutputStream out,
        final boolean serializeXMLDec, final boolean serializeRest, final Long nodekey, final Long revision); StringBuilder createStringBuilderObject(); static void closeWTX(final boolean abortTransaction, final INodeWriteTrx wtx, final ISession ses); static void closeRTX(final INodeReadTrx rtx, final ISession ses); EIdAccessType validateAccessType(final String accessType); static WorkerHelper getInstance();  }