Show / Hide Table of Contents

Class BufferedTokenQueue

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

Inheritance
System.Object
BaseTokenQueue
TokenQueue
BufferedTokenQueue
AsynchronousBufferedTokenQueue
Implements
ITokenQueue
Inherited Members
TokenQueue._tokens
TokenQueue.Enqueue(IToken)
TokenQueue.Clear()
TokenQueue.Count
TokenQueue.Tokens
TokenQueue.PrintTrace(IToken)
BaseTokenQueue._tokeniser
BaseTokenQueue._tracing
BaseTokenQueue._lasttokentype
BaseTokenQueue.Tokeniser
BaseTokenQueue.Tracing
BaseTokenQueue.LastTokenType
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRdf.dll
Syntax
public class BufferedTokenQueue : TokenQueue, ITokenQueue

Constructors

| Improve this Doc View Source

BufferedTokenQueue()

Creates a new Buffered Queue.

Declaration
public BufferedTokenQueue()
| Improve this Doc View Source

BufferedTokenQueue(ITokeniser)

Creates a new Buffered Queue for the given Tokeniser.

Declaration
public BufferedTokenQueue(ITokeniser tokeniser)
Parameters
Type Name Description
ITokeniser tokeniser

Tokeniser to Buffer.

Fields

| Improve this Doc View Source

_bufferAmount

Variable storing the Buffer Size.

Declaration
protected int _bufferAmount
Field Value
Type Description
int

Methods

| Improve this Doc View Source

BufferInternal()

Internal Helper Method which performs the Buffering.

Declaration
protected virtual void BufferInternal()
| Improve this Doc View Source

Dequeue()

Gets the next Token in the Queue and removes it from the Queue.

Declaration
public override IToken Dequeue()
Returns
Type Description
IToken

Token at the front of the Queue.

Overrides
TokenQueue.Dequeue()
| Improve this Doc View Source

InitialiseBuffer()

Causes the Buffer to be filled using the Default Buffering level of 10.

Declaration
public override void InitialiseBuffer()
Overrides
TokenQueue.InitialiseBuffer()
| Improve this Doc View Source

InitialiseBuffer(int)

Causes the Buffer to be filled and sets the Buffering level for the Queue.

Declaration
public override void InitialiseBuffer(int amount)
Parameters
Type Name Description
int amount

Number of Tokens to Buffer.

Overrides
TokenQueue.InitialiseBuffer(int)
Remarks

If a Buffer amount of less than zero is given then Buffer size will stay at default size (10) or existing size if it's previously been set.

| Improve this Doc View Source

Peek()

Gets the next Token in the Queue without removing it from the Queue.

Declaration
public override IToken Peek()
Returns
Type Description
IToken

Token at the front of the Queue.

Overrides
TokenQueue.Peek()

Implements

ITokenQueue

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BufferedTokenQueue()
    • BufferedTokenQueue(ITokeniser)
  • Fields
    • _bufferAmount
  • Methods
    • BufferInternal()
    • Dequeue()
    • InitialiseBuffer()
    • InitialiseBuffer(int)
    • Peek()
  • Implements
  • Extension Methods
Back to top Generated by DocFX