Class Position
java.lang.Object
org.apache.directory.api.util.Position
This class is used to store the position of a token in a string.
- Author:
- Apache Directory Project
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
start
public int startThe starting position in the string -
length
public int lengthThe current token length -
end
public int endThe token end position in the string
-
-
Constructor Details
-
Position
public Position()A public constructor -
Position
-
Position
public Position(byte[] bytes) A public constructor- Parameters:
bytes- The bytes to parse
-
-
Method Details
-
getByte
public byte getByte()Get the byte at the current position- Returns:
- the byte at the current position
-
getBytes
public byte[] getBytes()Get the stored bytes- Returns:
- The interned byte[]
-
toString
-