Barcode Generation State in XML via Java
Overview
Aspose.BarCode for Java enables data serialization and data import from XML through special methods of class BarcodeGenerator. There are two ways of implementing data serialization: outputting data to an XML-file through the exportToXml(java.lang.String xmlFile) method or a stream through the exportToXml(java.io.OutputStream xml) method. Uploading data from XML can be done from a file through the importFromXml(java.lang.String xmlFile) method or a stream through the importFromXml(java.io.InputStream xml) method.
Export Barcode Generation Data to XML
As stated above, Aspose.BarCode for Java provides two ways of outputting the current state of class BarcodeGenerator: to an XML file using the exportToXml(java.io.String xmlFile) method or a stream through the exportToXml(java.lang.OutputStream xml) method.
Import Barcode Generation Data from XML
It is possible to import the current state of of class BarcodeGenerator from an XML file through the importFromXml(java.lang.String xmlFile) method or a stream using the importFromXml(java.io.InputStream xml) function.
Save and Load Barcode Data from Stream
To export and import information from streams, two special methods need to be called: exportToXml(java.lang.OutputStream xml) and importFromXml(java.io.InputStream xml).