Class CodespaceRange

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

public class CodespaceRange extends Object
This represents a single entry in the codespace range.
Version:
$Revision: 1.1 $
Author:
Ben Litchfield (ben@benlitchfield.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of CodespaceRange.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Getter for property end.
    byte[]
    Getter for property start.
    boolean
    isInRange(byte[] code, int offset, int length)
    Check whether the given byte array is in this codespace range or ot.
    void
    setEnd(byte[] endBytes)
    Setter for property end.
    void
    setStart(byte[] startBytes)
    Setter for property start.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CodespaceRange

      public CodespaceRange()
      Creates a new instance of CodespaceRange.
  • Method Details

    • getEnd

      public byte[] getEnd()
      Getter for property end.
      Returns:
      Value of property end.
    • setEnd

      public void setEnd(byte[] endBytes)
      Setter for property end.
      Parameters:
      endBytes - New value of property end.
    • getStart

      public byte[] getStart()
      Getter for property start.
      Returns:
      Value of property start.
    • setStart

      public void setStart(byte[] startBytes)
      Setter for property start.
      Parameters:
      startBytes - New value of property start.
    • isInRange

      public boolean isInRange(byte[] code, int offset, int length)
      Check whether the given byte array is in this codespace range or ot.
      Parameters:
      code - The byte array to look for in the codespace range.
      offset - The starting offset within the byte array.
      length - The length of the part of the array.
      Returns:
      true if the given byte array is in the codespace range.