setasign\Fpdi\PdfParser

Tokenizer A tokenizer class.

File: /FPDI v2/PdfParser/Tokenizer.php

Class hierarchy

Summary

Properties

$stack

protected string[] Tokenizer::$stack = array()

A token stack.

$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