private boolean finished;
private boolean isFormatted = MappingNodeConstants.Defaults.DEFAULT_FORMATTED_DOCUMENT.booleanValue();
private SQLXMLImpl xml;
public DocumentInProgress(FileStore store, String encoding) throws TeiidComponentException{
final FileStoreInputStreamFactory fsisf = new FileStoreInputStreamFactory(store, encoding);
this.xml = new SQLXMLImpl(fsisf);
this.xml.setEncoding(encoding);
SAXTransformerFactory factory = new TransformerFactoryImpl();
try {
//SAX2.0 ContentHandler
handler = factory.newTransformerHandler();
handler.setResult(new StreamResult(fsisf.getOuputStream()));
} catch (Exception e) {
throw new TeiidComponentException(e);
}
transformer = handler.getTransformer();
transformer.setOutputProperty(OutputKeys.ENCODING, encoding);