Sgss_File_Reader_Abstract
+ Sgss_File_Reader
|
$_stream
Stream to read |
|
__construct (Sgss_File_Stream_Read $stream)
The constructor |
boolean |
close ()
Closes the stream |
int |
move (int $position)
Moves the pointer of the stream to the specified position in byte without reading the contents |
string |
read ([int $length = 1])
Reads the contents and moves the pointer of the stream by the specified length of bytes |
string |
readAll ()
Reads all the contents of the stream |
int |
reset ()
Moves the pointer of the stream to the first |
Stream to read
protected Sgss_File_Stream_Read $_stream
The constructor
Sgss_File_Stream_Read $stream
Stream to read
When unable to obtain the infomation of the specified stream necessary to initialize the reader
public __construct (Sgss_File_Stream_Read $stream)
Closes the stream
public boolean close ()
Moves the pointer of the stream to the specified position in byte without reading the contents
int $position
Position in byte to which the pointer moves
When unable to move the pointer of the stream
Moves the pointer of the stream to the specified position in byte without reading the contents
public int move (int $position)
Reads the contents and moves the pointer of the stream by the specified length of bytes
int $length
Length in byte to read
When attempting to read beyond the end of stream
public string read ([int $length = 1])
Reads all the contents of the stream
When unable to read the content of the stream
public string readAll ()
Moves the pointer of the stream to the first
public int reset ()