Package test
Class TestPNamePerf
java.lang.Object
test.TestPNamePerf
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) final XmlCharTypes(package private) final byte[](package private) int(package private) intprotected char[]protected int[](package private) final int(package private) final ByteBasedPNameTable(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ByteBasedPNameaddPName(int hash, int[] quads, int qlen, int lastQuadBytes) private final ByteBasedPNamefindPName(int onlyQuad, int lastByteCount) private final ByteBasedPNamefindPName(int lastQuad, int[] quads, int qlen, int lastByteCount) private final ByteBasedPNamefindPName(int firstQuad, int secondQuad, int lastByteCount) private final ByteBasedPNamefindPName(int lastQuad, int lastByteCount, int firstQuad, int qlen, int[] quads) private voidprivate intloadOne()static voidprotected ByteBasedPNameparsePName(byte b) protected ByteBasedPNameparsePNameNew(byte b) protected ByteBasedPNameparsePNameNew2(byte b) protected ByteBasedPNameparsePNameNewLong(int q, int[] quads) protected ByteBasedPNameparsePNameNewMedium(int i2, int q1) private static byte[]private voidreportError(int arg) private voidreportError(String msg) voidtest()private inttestNew()private inttestNew2()private intprivate inttestNewA()private intprivate int
-
Field Details
-
INT_A
static final int INT_A- See Also:
-
mRepCount
final int mRepCount -
mTmpChar
int mTmpChar -
mInputBuffer
final byte[] mInputBuffer -
mSymbols
-
mCharTypes
-
mInputPtr
int mInputPtr -
mInputLen
int mInputLen -
mQuadBuffer
protected int[] mQuadBuffer -
mNameBuffer
protected char[] mNameBuffer
-
-
Constructor Details
-
TestPNamePerf
public TestPNamePerf(byte[] data, int repCount)
-
-
Method Details
-
test
- Throws:
IOExceptionXMLStreamException
-
testRegularA
- Throws:
IOExceptionXMLStreamException
-
testNewA
- Throws:
IOExceptionXMLStreamException
-
testNew2A
- Throws:
IOExceptionXMLStreamException
-
testRegular
- Throws:
IOExceptionXMLStreamException
-
testNew
- Throws:
IOExceptionXMLStreamException
-
testNew2
- Throws:
IOExceptionXMLStreamException
-
parsePName
- Throws:
XMLStreamException
-
parsePNameNew
- Throws:
XMLStreamException
-
parsePNameNew2
- Throws:
XMLStreamException
-
parsePNameNewMedium
- Throws:
XMLStreamException
-
parsePNameNewLong
- Throws:
XMLStreamException
-
findPName
- Throws:
XMLStreamException
-
findPName
private final ByteBasedPName findPName(int firstQuad, int secondQuad, int lastByteCount) throws XMLStreamException - Throws:
XMLStreamException
-
findPName
private final ByteBasedPName findPName(int lastQuad, int[] quads, int qlen, int lastByteCount) throws XMLStreamException - Throws:
XMLStreamException
-
findPName
private final ByteBasedPName findPName(int lastQuad, int lastByteCount, int firstQuad, int qlen, int[] quads) throws XMLStreamException - Throws:
XMLStreamException
-
addPName
protected final ByteBasedPName addPName(int hash, int[] quads, int qlen, int lastQuadBytes) throws XMLStreamException - Throws:
XMLStreamException
-
loadMoreGuaranteed
private void loadMoreGuaranteed() -
loadOne
private int loadOne() -
reportError
private void reportError(int arg) -
reportError
-
readData
- Throws:
IOException
-
main
- Throws:
Exception
-