Search in sources :

Example 1 with XMLByteOutputStream

use of com.ximpleware.XMLByteOutputStream in project translationstudio8 by heartsome.

the class AbstractDrawing method save.

protected void save() {
    try {
        XMLByteOutputStream xbos = new XMLByteOutputStream(xm.getUpdatedDocumentSize());
        xm.output(xbos);
        this.xmlContent = new String(xbos.getXML());
        xbos.close();
    // System.out.println(this.xmlContent);
    } catch (VTDException e) {
        logger.error("", e);
    } catch (IOException e) {
        logger.error("", e);
    }
}
Also used : VTDException(com.ximpleware.VTDException) XMLByteOutputStream(com.ximpleware.XMLByteOutputStream) IOException(java.io.IOException)

Aggregations

VTDException (com.ximpleware.VTDException)1 XMLByteOutputStream (com.ximpleware.XMLByteOutputStream)1 IOException (java.io.IOException)1