Package org.apache.http.message
Class ParserCursor
java.lang.Object
org.apache.http.message.ParserCursor
public class ParserCursor extends Object
This class represents a context of a parsing operation:
- the current position the parsing operation is expected to start at
- the bounds limiting the scope of the parsing operation
- Author:
- Oleg Kalnichevski
-
Constructor Summary
Constructors Constructor Description ParserCursor(int lowerBound, int upperBound) -
Method Summary
Modifier and Type Method Description booleanatEnd()intgetLowerBound()intgetPos()intgetUpperBound()StringtoString()Returns a string containing a concise, human-readable description of this object.voidupdatePos(int pos)
-
Constructor Details
-
ParserCursor
public ParserCursor(int lowerBound, int upperBound)
-
-
Method Details
-
getLowerBound
public int getLowerBound() -
getUpperBound
public int getUpperBound() -
getPos
public int getPos() -
updatePos
public void updatePos(int pos) -
atEnd
public boolean atEnd() -
toString
Description copied from class:ObjectReturns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toStringmethod if you intend implementing your owntoStringmethod.
-