|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objecttest.RoundTrip
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.
| 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 |
public RoundTrip()
| Method Detail |
public static byte[] runParseOut(java.io.InputStream in)
throws java.lang.Exception
in - input stream for reading document text
java.lang.Exception - anything thrown by example code
public static byte[] runRoundTrip(java.io.InputStream in)
throws java.lang.Exception
in - input stream for reading document text
java.lang.Exception - anything thrown by example code
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - command line arguments
java.lang.Exception - anything thrown by example code
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||