setasign\SetaPDF2\Core

Tokenizer Tokenizer class for PDF documents

File: /SetaPDF v2/Core/Tokenizer.php
Old class name (alias): \SetaPDF_Core_Tokenizer

Class hierarchy

Summary

Properties

$_reader

$stack

protected Tokenizer::$stack = array()

Methods

__construct()

The constructor.

Parameters
$reader : \SetaPDF_Core_Reader_ReaderInterface
 

cleanUp()

public Tokenizer::cleanUp (
void
): void

Clean up resources and release cycled references.

clearStack()

public Tokenizer::clearStack (
void
): void

Clears the token stack.

getReader()

Get the reader class.

isCurrentByteRegularCharacter()

Check if the current byte is a regular character.

leapWhiteSpaces()

public Tokenizer::leapWhiteSpaces (
void
): bool

Leap white spaces.

pushStack()

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

Add a token onto the token stack.

Parameters
$token : string
 

readToken()

public Tokenizer::readToken (
void
): string

Read a token from the reader (or internal stack).

setReader()

Set the reader class.

Parameters
$reader : \SetaPDF_Core_Reader_ReaderInterface