nux.xom.tests
Class BinaryXMLConverter
java.lang.Object
nux.xom.tests.BinaryXMLConverter
public final class BinaryXMLConverter
- extends Object
Command-line demo that converts a set of standard textual XML files to and
from binary xml (bnux) files; Bnux files are indicated by a ".bnux" file name
extension. Output files are written in the same directory as the input files,
with the ".bnux" file extension added or stripped, respectively.
Example usage:
export CLASSPATH=lib/nux.jar:lib/saxon8.jar:lib/xom.jar
# convert a set of XML files to bnux:
java -server nux.xom.tests.BinaryXMLConverter samples/shakespeare/*.xml
# convert a set of bnux files to XML:
java -server nux.xom.tests.BinaryXMLConverter samples/shakespeare/*.bnux
# redirecting System.in and System.out:
java nux.xom.tests.BinaryXMLConverter < samples/data/p2pio-receive.xml > p2pio-receive.xml.bnux
java nux.xom.tests.BinaryXMLConverter < samples/data/p2pio-receive.xml.bnux > p2pio-receive.xml
# display bnux file as textual XML to System.out:
java nux.xom.tests.BinaryXMLConverter < samples/data/p2pio-receive.xml.bnux
- Author:
- whoschek.AT.lbl.DOT.gov, $Author: hoschek3 $
- See Also:
BinaryXMLCodec
Method Summary |
static void |
main(String[] args)
Runs the demo program. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] args)
throws Exception
- Runs the demo program.
- Throws:
Exception