SetaPDF_Core_Tokenizer Tokenizer class for PDF documents

File: /SetaPDF v2/Core/Tokenizer.php

Class hierarchy

Summary

Properties

$stack

protected SetaPDF_Core_Tokenizer::$stack = array()

Methods

__construct()

cleanUp()

public SetaPDF_Core_Tokenizer::cleanUp (
void
): void

Clean up resources and release cycled references.

clearStack()

public SetaPDF_Core_Tokenizer::clearStack (
void
): void

Clears the token stack.

getReader()

isCurrentByteRegularCharacter()

Check if the current byte is a regular character.

leapWhiteSpaces()

Leap white spaces.

pushStack()

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

Add a token onto the token stack.

Parameters
$token : string
 

readToken()

public SetaPDF_Core_Tokenizer::readToken (
void
): string

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

setReader()

Set the reader class.

Parameters
$reader : SetaPDF_Core_Reader_ReaderInterface