Package 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.- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description CodespaceRange()
Creates a new instance of CodespaceRange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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.
-
-