public class TestStreamSpeed extends Object implements XMLStreamConstants
Note that this can be used to test both Reader and InputStream-based stream readers.
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static byte[] |
readBData(File file) |
static char[] |
readCData(File f) |
protected int |
test(File file) |
protected int |
test2(File file,
byte[] bdata,
char[] cdata) |
protected int |
test3(byte[] bdata,
char[] cdata,
File file) |
public static byte[] readBData(File file) throws IOException
IOExceptionpublic static char[] readCData(File f) throws IOException
IOExceptionCopyright © 2013 Codehaus. All Rights Reserved.