// Path: src/main/java/com/siemens/ct/exi/main/api/sax/EXIResult.java
// public class EXIResult extends SAXResult {
// 
// 	protected SAXEncoder handler;
// 
// 	public EXIResult() throws IOException, EXIException {
// 		// use default exi-factory
// 		this(DefaultEXIFactory.newInstance());
// 	}
// 
// 	public EXIResult(EXIFactory exiFactory) throws EXIException {
// 		// DefaultHandler2 handler = exiFactory.createEXIWriter(os);
// 		handler = new SAXFactory(exiFactory).createEXIWriter();
// 		// set internal states
// 		setHandler(handler);
// 		setLexicalHandler(handler);
// 	}
// 
// 	public void setOutputStream(OutputStream os) throws EXIException,
// 			IOException {
// 		handler.setOutputStream(os);
// 	}
// 
// }


import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.net.MalformedURLException;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import com.siemens.ct.exi.core.EXIFactory;
import com.siemens.ct.exi.core.exceptions.EXIException;
import com.siemens.ct.exi.core.helpers.DefaultEXIFactory;
import com.siemens.ct.exi.main.api.sax.EXIResult;

package com.siemens.ct.exi.main.api.xmlpull;




public class ParserExample {

	public static void main(final String[] args) throws XmlPullParserException,
			MalformedURLException, IOException, EXIException, SAXException {

		String xml = "./data/W3C/PrimerNotebook/notebook.xml";

		EXIFactory factory = DefaultEXIFactory.newInstance();

		// Encode to EXI
		ByteArrayOutputStream baos = new ByteArrayOutputStream();

// Path: src/main/java/com/siemens/ct/exi/main/api/sax/EXIResult.java
// public class EXIResult extends SAXResult {
// 
// 	protected SAXEncoder handler;
// 
// 	public EXIResult() throws IOException, EXIException {
// 		// use default exi-factory
// 		this(DefaultEXIFactory.newInstance());
// 	}
// 
// 	public EXIResult(EXIFactory exiFactory) throws EXIException {
// 		// DefaultHandler2 handler = exiFactory.createEXIWriter(os);
// 		handler = new SAXFactory(exiFactory).createEXIWriter();
// 		// set internal states
// 		setHandler(handler);
// 		setLexicalHandler(handler);
// 	}
// 
// 	public void setOutputStream(OutputStream os) throws EXIException,
// 			IOException {
// 		handler.setOutputStream(os);
// 	}
// 
// }


// Path: src/test/java/com/siemens/ct/exi/main/api/xmlpull/ParserExample.java
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.net.MalformedURLException;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
import com.siemens.ct.exi.core.EXIFactory;
import com.siemens.ct.exi.core.exceptions.EXIException;
import com.siemens.ct.exi.core.helpers.DefaultEXIFactory;
import com.siemens.ct.exi.main.api.sax.EXIResult;

package com.siemens.ct.exi.main.api.xmlpull;




public class ParserExample {

	public static void main(final String[] args) throws XmlPullParserException,
			MalformedURLException, IOException, EXIException, SAXException {

		String xml = "./data/W3C/PrimerNotebook/notebook.xml";

		EXIFactory factory = DefaultEXIFactory.newInstance();

		// Encode to EXI
		ByteArrayOutputStream baos = new ByteArrayOutputStream();

		EXIResult exiResult = new EXIResult(factory);
