Package com.tom_roush.fontbox.cmap
Class CodespaceRange
- java.lang.Object
-
- com.tom_roush.fontbox.cmap.CodespaceRange
-
public class CodespaceRange extends Object
This represents a single entry in the codespace range.
-
-
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 byte[]getEnd()Getter for property end.byte[]getStart()Getter for property start.booleanisFullMatch(List<Byte> code)Returns true if the given code bytes match this codespace range.booleanisPartialMatch(byte b, int index)Returns true if the given byte matches the byte at the given index of this codespace range.booleanmatches(byte[] code)Returns true if the given code bytes match this codespace range.
-
-
-
Method Detail
-
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(List<Byte> code)
Returns true if the given code bytes match this codespace range.
-
isPartialMatch
public boolean isPartialMatch(byte b, int index)Returns true if the given byte matches the byte at the given index of this codespace range.
-
-