com.fasterxml.aalto.in

## Class ByteBasedPNameFactory

- java.lang.Object
- - com.fasterxml.aalto.in.ByteBasedPNameFactory

-     public final class ByteBasedPNameFactory
      extends Object

  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.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ByteBasedPName` | `constructPName(int hash, String pname, int colonIx, int[] quads, int qlen)`
    `ByteBasedPName` | `constructPName(int hash, String pname, int colonIx, int quad1, int quad2)`
    `static ByteBasedPNameFactory` | `getInstance()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static ByteBasedPNameFactory getInstance()

    - #### constructPName

          public ByteBasedPName constructPName(int hash,
                                      String pname,
                                      int colonIx,
                                      int quad1,
                                      int quad2)

    - #### constructPName

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

Copyright © 2018 FasterXML. All rights reserved.