public class CodespaceRange extends Object
| Constructor and Description |
|---|
CodespaceRange(byte[] startBytes,
byte[] endBytes)
Creates a new instance of CodespaceRange.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCodeLength()
Returns the length of the codes of the codespace.
|
boolean |
isFullMatch(byte[] code,
int codeLen)
Returns true if the given number of code bytes match this codespace range.
|
boolean |
matches(byte[] code)
Returns true if the given code bytes match this codespace range.
|
public CodespaceRange(byte[] startBytes,
byte[] endBytes)
startBytes - start of the rangeendBytes - start of the rangepublic int getCodeLength()
public boolean matches(byte[] code)
code - the code bytes to be matchedpublic boolean isFullMatch(byte[] code,
int codeLen)
code - the code bytes to be matchedcodeLen - the code length to be used for matchingCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.