Top Description Fields Constructors Methods
com.fasterxml.aalto.in

public final Class ByteBasedPNameFactory

extends Object
Class Inheritance

Simple factory that can instantiate appropriate PName instances, given input data to use for construction. The main reason for a factory class here is just to insulate calling code from having to know details of concrete implementations.

Field Summary

Modifier and TypeField and Description
private static final boolean
DO_INTERN

Can be set to false for debugging (for example, to test memory usage)

private static final ByteBasedPNameFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ByteBasedPName
constructPName(int hash, String pname, int colonIx, int quad1, int quad2)

public ByteBasedPName
constructPName(int hash, String pname, int colonIx, int[] quads, int qlen)

public static ByteBasedPNameFactory
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DO_INTERNback to summary
private static final boolean DO_INTERN

Can be set to false for debugging (for example, to test memory usage)

sInstanceback to summary
private static final ByteBasedPNameFactory sInstance

Constructor Detail

ByteBasedPNameFactoryback to summary
private ByteBasedPNameFactory()

Method Detail

constructPNameback to summary
public ByteBasedPName constructPName(int hash, String pname, int colonIx, int quad1, int quad2)
constructPNameback to summary
public ByteBasedPName constructPName(int hash, String pname, int colonIx, int[] quads, int qlen)
getInstanceback to summary
public static ByteBasedPNameFactory getInstance()