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) int
protected char[]
protected int[]
(package private) final int
(package private) final ByteBasedPNameTable
(package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ByteBasedPName
addPName
(int hash, int[] quads, int qlen, int lastQuadBytes) private final ByteBasedPName
findPName
(int onlyQuad, int lastByteCount) private final ByteBasedPName
findPName
(int lastQuad, int[] quads, int qlen, int lastByteCount) private final ByteBasedPName
findPName
(int firstQuad, int secondQuad, int lastByteCount) private final ByteBasedPName
findPName
(int lastQuad, int lastByteCount, int firstQuad, int qlen, int[] quads) private void
private int
loadOne()
static void
protected ByteBasedPName
parsePName
(byte b) protected ByteBasedPName
parsePNameNew
(byte b) protected ByteBasedPName
parsePNameNew2
(byte b) protected ByteBasedPName
parsePNameNewLong
(int q, int[] quads) protected ByteBasedPName
parsePNameNewMedium
(int i2, int q1) private static byte[]
private void
reportError
(int arg) private void
reportError
(String msg) void
test()
private int
testNew()
private int
testNew2()
private int
private int
testNewA()
private int
private 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:
IOException
XMLStreamException
-
testRegularA
- Throws:
IOException
XMLStreamException
-
testNewA
- Throws:
IOException
XMLStreamException
-
testNew2A
- Throws:
IOException
XMLStreamException
-
testRegular
- Throws:
IOException
XMLStreamException
-
testNew
- Throws:
IOException
XMLStreamException
-
testNew2
- Throws:
IOException
XMLStreamException
-
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
-