Top Fields Constructors Methods
test

public final Class TestPNamePerf

extends Object
Class Inheritance
Imports
java.io.*, javax.xml.stream.*, com.fasterxml.aalto.in.*, com.fasterxml.aalto.util.*

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv final XmlCharTypes
pack-priv final byte[]
pack-priv int
pack-priv int
protected char[]
protected int[]
pack-priv final int
pack-priv final ByteBasedPNameTable
pack-priv int

Constructor Summary

AccessConstructor and Description
public
TestPNamePerf(byte[] data, int repCount)

Method Summary

Modifier and TypeMethod and Description
protected final ByteBasedPName
addPName(int hash, int[] quads, int qlen, int lastQuadBytes)

private final ByteBasedPName
findPName(int onlyQuad, int lastByteCount)

private final ByteBasedPName
findPName(int firstQuad, int secondQuad, int lastByteCount)

private final ByteBasedPName
findPName(int lastQuad, int[] quads, int qlen, int lastByteCount)

private final ByteBasedPName
findPName(int lastQuad, int lastByteCount, int firstQuad, int qlen, int[] quads)

private void
private int
public static void
main(String[] args)

protected ByteBasedPName
parsePName(byte b)

protected ByteBasedPName
parsePNameNew(byte b)

protected ByteBasedPName
protected ByteBasedPName
parsePNameNewLong(int q, int[] quads)

protected ByteBasedPName
parsePNameNewMedium(int i2, int q1)

private static byte[]
private void
reportError(int arg)

private void
public void
test()

private int
private int
private int
private int
private int
private int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INT_Aback to summary
pack-priv static final int INT_A
mCharTypesback to summary
pack-priv final XmlCharTypes mCharTypes
mInputBufferback to summary
pack-priv final byte[] mInputBuffer
mInputLenback to summary
pack-priv int mInputLen
mInputPtrback to summary
pack-priv int mInputPtr
mNameBufferback to summary
protected char[] mNameBuffer
mQuadBufferback to summary
protected int[] mQuadBuffer
mRepCountback to summary
pack-priv final int mRepCount
mSymbolsback to summary
pack-priv final ByteBasedPNameTable mSymbols
mTmpCharback to summary
pack-priv int mTmpChar

Constructor Detail

TestPNamePerfback to summary
public TestPNamePerf(byte[] data, int repCount)

Method Detail

addPNameback to summary
protected final ByteBasedPName addPName(int hash, int[] quads, int qlen, int lastQuadBytes) throws XMLStreamException
findPNameback to summary
private final ByteBasedPName findPName(int onlyQuad, int lastByteCount) throws XMLStreamException
findPNameback to summary
private final ByteBasedPName findPName(int firstQuad, int secondQuad, int lastByteCount) throws XMLStreamException
findPNameback to summary
private final ByteBasedPName findPName(int lastQuad, int[] quads, int qlen, int lastByteCount) throws XMLStreamException
findPNameback to summary
private final ByteBasedPName findPName(int lastQuad, int lastByteCount, int firstQuad, int qlen, int[] quads) throws XMLStreamException
loadMoreGuaranteedback to summary
private void loadMoreGuaranteed()
loadOneback to summary
private int loadOne()
mainback to summary
public static void main(String[] args) throws Exception
parsePNameback to summary
protected ByteBasedPName parsePName(byte b) throws XMLStreamException
parsePNameNewback to summary
protected ByteBasedPName parsePNameNew(byte b) throws XMLStreamException
parsePNameNew2back to summary
protected ByteBasedPName parsePNameNew2(byte b) throws XMLStreamException
parsePNameNewLongback to summary
protected ByteBasedPName parsePNameNewLong(int q, int[] quads) throws XMLStreamException
parsePNameNewMediumback to summary
protected ByteBasedPName parsePNameNewMedium(int i2, int q1) throws XMLStreamException
readDataback to summary
private static byte[] readData(File f) throws IOException
reportErrorback to summary
private void reportError(int arg)
reportErrorback to summary
private void reportError(String msg)
testback to summary
public void test() throws IOException, XMLStreamException
testNewback to summary
private int testNew() throws IOException, XMLStreamException
testNew2back to summary
private int testNew2() throws IOException, XMLStreamException
testNew2Aback to summary
private int testNew2A() throws IOException, XMLStreamException
testNewAback to summary
private int testNewA() throws IOException, XMLStreamException
testRegularback to summary
private int testRegular() throws IOException, XMLStreamException
testRegularAback to summary
private int testRegularA() throws IOException, XMLStreamException