CodespaceRange
Date: 2017-05-25

org.apache.fontbox.cmap

## Class CodespaceRange

- java.lang.Object
- - org.apache.fontbox.cmap.CodespaceRange

-     public class CodespaceRange
      extends java.lang.Object

  This represents a single entry in the codespace range.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CodespaceRange()` Creates a new instance of CodespaceRange.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getCodeLength()` Returns the length of the codes of the codespace.
    `byte[]` | `getEnd()` Getter for property end.
    `byte[]` | `getStart()` Getter for property start.
    `boolean` | `isFullMatch(byte[] code, int codeLen)` Returns true if the given code bytes match this codespace range.
    `boolean` | `matches(byte[] code)` Returns true if the given code bytes match this codespace range.

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

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

- - ### Constructor Detail

    - #### CodespaceRange

          public CodespaceRange()

      Creates a new instance of CodespaceRange.

  - ### Method Detail

    - #### getCodeLength

          public int getCodeLength()

      Returns the length of the codes of the codespace.
      Returns:
        the code length

    - #### getEnd

          public byte[] getEnd()

      Getter for property end.
      Returns:
        Value of property end.

    - #### getStart

          public byte[] getStart()

      Getter for property start.
      Returns:
        Value of property start.

    - #### matches

          public boolean matches(byte[] code)

      Returns true if the given code bytes match this codespace range.

    - #### isFullMatch

          public boolean isFullMatch(byte[] code,
                            int codeLen)

      Returns true if the given code bytes match this codespace range.