Click or drag to resize

BufferedTokenQueue Class

A Buffered Queue for a Tokeniser which synchronously buffers a number of Tokens when the Queue is accessed and nothing is Buffered.
Inheritance Hierarchy

Namespace:  VDS.RDF.Parsing.Tokens
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class BufferedTokenQueue : TokenQueue

The BufferedTokenQueue type exposes the following members.

Constructors
  NameDescription
Public methodBufferedTokenQueue
Creates a new Buffered Queue.
Public methodBufferedTokenQueue(ITokeniser)
Creates a new Buffered Queue for the given Tokeniser.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of Tokens in the Queue.
(Inherited from TokenQueue.)
Public propertyLastTokenType
Gets the Token Type of the last Token dequeued.
(Inherited from BaseTokenQueue.)
Public propertyTokeniser
Sets the Tokeniser used by the Queue.
(Inherited from BaseTokenQueue.)
Public propertyTokens
Gets the underlying Queue of Tokens.
(Inherited from TokenQueue.)
Public propertyTracing
Gets/Sets Tracing for the Token Queue.
(Inherited from BaseTokenQueue.)
Top
Methods
  NameDescription
Protected methodBufferInternal
Internal Helper Method which performs the Buffering.
Public methodClear
Empties the Token Queue.
(Inherited from TokenQueue.)
Public methodDequeue
Gets the next Token in the Queue and removes it from the Queue.
(Overrides TokenQueueDequeue.)
Public methodEnqueue
Adds a Token to the end of the Queue.
(Inherited from TokenQueue.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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 methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialiseBuffer
Causes the Buffer to be filled using the Default Buffering level of 10.
(Overrides TokenQueueInitialiseBuffer.)
Public methodInitialiseBuffer(Int32)
Causes the Buffer to be filled and sets the Buffering level for the Queue.
(Overrides TokenQueueInitialiseBuffer(Int32).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPeek
Gets the next Token in the Queue without removing it from the Queue.
(Overrides TokenQueuePeek.)
Protected methodPrintTrace
Internal Helper Method for Tokeniser Tracing.
(Inherited from TokenQueue.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_bufferAmount
Variable storing the Buffer Size.
Protected field_lasttokentype
Type of Last Token dequeued.
(Inherited from BaseTokenQueue.)
Protected field_tokeniser
Tokeniser used to fill the Token Queue.
(Inherited from BaseTokenQueue.)
Protected field_tokens
Internal Queue object which this class is a wrapper around.
(Inherited from TokenQueue.)
Protected field_tracing
Variable indicating whether Tokeniser Tracing is enabled.
(Inherited from BaseTokenQueue.)
Top
See Also