StringSource
in package
implements
Source
FinalYes
Tokenizer source backed by an in-memory string -- used by {@see \Phpdftk\Pdf\Reader\PdfReader::fromString()}.
Table of Contents
Interfaces
- Source
- Seekable byte source abstraction for the PDF tokenizer.
Methods
- __construct() : mixed
- isEof() : bool
- peek() : string
- read() : string
- readByte() : string|null
- seek() : void
- size() : int
- tell() : int
Methods
__construct()
public
__construct(string $data) : mixed
Parameters
- $data : string
isEof()
public
isEof() : bool
Return values
boolpeek()
public
peek([int $length = 1 ]) : string
Parameters
- $length : int = 1
Return values
stringread()
public
read(int $length) : string
Parameters
- $length : int
Return values
stringreadByte()
public
readByte() : string|null
Return values
string|nullseek()
public
seek(int $offset) : void
Parameters
- $offset : int
size()
public
size() : int
Return values
inttell()
public
tell() : int