test
Class RoundTrip

java.lang.Object
  extended bytest.RoundTrip

public class RoundTrip
extends java.lang.Object

Test code for XBIS encoding and decoding. Roundtrips a document to XBIS format and back out as text, comparing the result with the same document output as text directly from the parser.

Version:
0.8
Author:
Dennis M. Sosnoski

Constructor Summary
RoundTrip()
           
 
Method Summary
static void main(java.lang.String[] args)
          Test driver, reads an input file and writes out the roundtripped version to an output file.
static byte[] runParseOut(java.io.InputStream in)
          Parse input document and output again as text.
static byte[] runRoundTrip(java.io.InputStream in)
          Parse input document to generate XBIS then output again as text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundTrip

public RoundTrip()
Method Detail

runParseOut

public static byte[] runParseOut(java.io.InputStream in)
                          throws java.lang.Exception
Parse input document and output again as text.

Parameters:
in - input stream for reading document text
Returns:
output text as byte array
Throws:
java.lang.Exception - anything thrown by example code

runRoundTrip

public static byte[] runRoundTrip(java.io.InputStream in)
                           throws java.lang.Exception
Parse input document to generate XBIS then output again as text.

Parameters:
in - input stream for reading document text
Returns:
output text as byte array
Throws:
java.lang.Exception - anything thrown by example code

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test driver, reads an input file and writes out the roundtripped version to an output file.

Parameters:
args - command line arguments
Throws:
java.lang.Exception - anything thrown by example code


Company Web Site

XML Binary Information Set Home