setasign\Fpdi\PdfParser

Tokenizer A tokenizer class.

File: /FPDI v2/PdfParser/Tokenizer.php

Class hierarchy

Summary

Properties

$stack

protected string[] setasign\Fpdi\PdfParser\Tokenizer::$stack = array()

A token stack.

$streamReader

protected StreamReader setasign\Fpdi\PdfParser\Tokenizer::$streamReader


Methods

__construct()

public Tokenizer::__construct (
StreamReader $streamReader
)

Tokenizer constructor.

Parameters
$streamReader : StreamReader
 

clearStack()

public Tokenizer::clearStack (
void
): void

Clear the token stack.

getNextToken()

public Tokenizer::getNextToken (
void
): bool|string

Get next token.

getStreamReader()

Get the stream reader instance.

leapWhiteSpaces()

public Tokenizer::leapWhiteSpaces (
void
): boolean

Leap white spaces.

pushStack()

public Tokenizer::pushStack (
string $token
): void

Push a token onto the stack.

Parameters
$token : string