Click or drag to resize

BaseTokeniser Class

Abstract Base Class for Tokeniser which handles the Position tracking.
Inheritance Hierarchy
SystemObject
  VDS.RDF.Parsing.TokensBaseTokeniser
    More...

Namespace:  VDS.RDF.Parsing.Tokens
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public abstract class BaseTokeniser : ITokeniser

The BaseTokeniser type exposes the following members.

Constructors
  NameDescription
Protected methodBaseTokeniser
Constructor for the BaseTokeniser which takes in a TextReader that the Tokeniser will generate Tokens from.
Top
Properties
  NameDescription
Protected propertyCurrentLine
Gets the Current Line in the Input Stream.
Protected propertyCurrentPosition
Gets the Current Position in the Input Stream.
Protected propertyEndLine
Gets the End Line in the Input Stream of the current Token.
Protected propertyEndPosition
Gets the End Position in the Input Stream of the current Token.
Protected propertyFormat
Gets/Sets the Format that this Tokeniser is used for.
Protected propertyHasBacktracked
Gets whether the Tokeniser has backtracked.
Protected propertyLastTokenType
Gets/Sets the Last Token Type.
Protected propertyLength
Gets the current length of the Output Buffer.
Protected propertyStartLine
Gets the Start Line in the Input Stream of the current Token.
Protected propertyStartPosition
Gets the Start Position in the Input Stream of the current Token.
Protected propertyValue
Gets the value of the Output Buffer.
Top
Methods
  NameDescription
Protected methodBacktrack
Allows you to Backtrack one character (and no more).
Protected methodConsumeCharacter
Consumes a single Character into the Output Buffer and increments the Position Counters.
Protected methodConsumeCharacter(Boolean)
Consumes a single Character into the Output Buffer and increments the Position Counters.
Protected methodConsumeNewLine(Boolean)
Consumes a New Line (which may be a single \n or \r or the two characters following each other).
Protected methodConsumeNewLine(Boolean, Boolean)
Consumes a New Line (which may be a single \n or \r or the two characters following each other).
Protected methodDiscardWhiteSpace
Helper function which discards White Space which the Tokeniser doesn't care about and increments position counters correctly.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodError
Helper Function for generating Standardised Parser Errors.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNextToken
Gets the Next available Token from the Input.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleComplexLocalNameEscapes
Handles the complex escapes that can occur in a local name.
Protected methodHandleEscapes
Handles the standard escapes supported in all the UTF-8 based RDF serializations.
Protected methodIsHexDigit
Determines whether a given Character can be valid as a Hex Digit.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodPeek
Peeks at the next Character.
Protected methodSkipCharacter
Skips a single Character and increments the Position Counters.
Protected methodStartNewToken
Informs the Helper that you wish to start reading a new Token.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodUnexpectedCharacter
Helper Function for generating Standardised Parser Errors about unexpected characters.
Protected methodUnexpectedEndOfInput
Helper Function for generating Standardised Parser Errors about unexpected end of input.
Protected methodUnexpectedNewLine
Helper Function for generating Standardised Parser Errors about unexpected new lines.
Protected methodUnexpectedToken
Helper Function for generating Standardised Parser Errors about unexpected tokens.
Top
See Also
Inheritance Hierarchy