Package com.fasterxml.aalto.in
Class ByteBasedPNameFactory
java.lang.Object
com.fasterxml.aalto.in.ByteBasedPNameFactory
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
FieldsModifier and TypeFieldDescriptionprivate static final boolean
Can be set to false for debugging (for example, to test memory usage)private static final ByteBasedPNameFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructPName
(int hash, String pname, int colonIx, int[] quads, int qlen) constructPName
(int hash, String pname, int colonIx, int quad1, int quad2) static ByteBasedPNameFactory
-
Field Details
-
DO_INTERN
private static final boolean DO_INTERNCan be set to false for debugging (for example, to test memory usage)- See Also:
-
sInstance
-
-
Constructor Details
-
ByteBasedPNameFactory
private ByteBasedPNameFactory()
-
-
Method Details
-
getInstance
-
constructPName
-
constructPName
-