Package org.jibx.runtime

Examples of org.jibx.runtime.IMarshallingContext.endDocument()


                    IMarshallingContext mctx = factory.createMarshallingContext();
                    mctx.setIndent(2);
                    ByteArrayOutputStream bos = new ByteArrayOutputStream();
                    mctx.setOutput(bos, "UTF-8");
                    ((IMarshallable)object).marshal(mctx);
                    mctx.endDocument();
                   
                    // compare with original input document
                    InputStreamReader brdr = new InputStreamReader
                        (new ByteArrayInputStream(bos.toByteArray()), "UTF-8");
                    InputStreamReader frdr = new InputStreamReader(new FileInputStream(file), encoding);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.