Nux 1.6

nux.xom.sandbox
Class BinaryXMLTest

java.lang.Object
  extended by nux.xom.sandbox.BinaryXMLTest

public final class BinaryXMLTest
extends Object

Tests and benchmarks bnux format against a set of standard textual XML files. Command line options allow to round-trip and check canonical XML results. They also allow to benchmark serialization, deserialization or both, either via bnux or xom.

Example usage:

 java -server nux.xom.sandbox.BinaryXMLTest test bnux 0 1 1 samples/data/*.xml
 java -server nux.xom.sandbox.BinaryXMLTest ser bnux 0 10000 5 samples/data/periodic.xml
 java -server nux.xom.sandbox.BinaryXMLTest deser bnux 0 10000 5 samples/data/periodic.xml
 java -server nux.xom.sandbox.BinaryXMLTest serdeser bnux 0 5000 5 samples/data/periodic.xml
 java -server nux.xom.sandbox.BinaryXMLTest serdeser xom 0 5000 5 samples/data/periodic.xml
 

Author:
whoschek.AT.lbl.DOT.gov, $Author: hoschek3 $

Field Summary
protected static boolean FAIL_FAST
           
 
Method Summary
protected static boolean bogus(File xmlFile)
           
protected static boolean contains(String x, String y)
           
static ByteArrayOutputStream createOutputStream(boolean nullStream)
           
protected static boolean endsWith(String x, String y)
           
protected static Builder getBuilder()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAIL_FAST

protected static final boolean FAIL_FAST
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

createOutputStream

public static ByteArrayOutputStream createOutputStream(boolean nullStream)

bogus

protected static boolean bogus(File xmlFile)

endsWith

protected static boolean endsWith(String x,
                                  String y)

contains

protected static boolean contains(String x,
                                  String y)

getBuilder

protected static Builder getBuilder()

Nux 1.6