Package org.apache.juneau.parser
Class Position
java.lang.Object
org.apache.juneau.parser.Position
Identifies a position in a reader or input stream.
See Also:
-
Constructor Details
-
Position
Constructor.- Parameters:
line
- The current line number.column
- The current column number.
-
Position
Constructor.- Parameters:
position
- The current byte position.
-
-
Method Details
-
toString
-
getLine
Returns the current line.- Returns:
- The current line, or
-1 if not specified.
-
getColumn
Returns the current column.- Returns:
- The current column, or
-1 if not specified.
-
getPosition
Returns the current byte position.- Returns:
- The current byte position, or
-1 if not specified.
-