Search/Lucene/Storage/File.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Search_Lucene
- Subpackage
- Storage
- Version
- $Id$
\Zend_Search_Lucene_Storage_File
- Children
- \Zend_Search_Lucene_Storage_File_Filesystem
- \Zend_Search_Lucene_Storage_File_Memory
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods
_fread(integer $length = 1) : string
Reads $length number of bytes at the current position in the file and advances the file pointer.
Name | Type | Description |
---|---|---|
$length | integer |
Type | Description |
---|---|
string |
_fwrite(string $data, integer $length = null) : void
Writes $length number of bytes (all, if $length===null) to the end of the file.
Name | Type | Description |
---|---|---|
$data | string | |
$length | integer |
flush() : boolean
Flush output.
Type | Description |
---|---|
boolean |
lock(integer $lockType, $nonBlockinLock = false) : boolean
Lock file
Name | Type | Description |
---|---|---|
$lockType | integer | |
$nonBlockinLock |
Type | Description |
---|---|
boolean |
readBinary() : string
Reads binary data from the current position in the file and advances the file pointer.
Type | Description |
---|---|
string |
readByte() : integer
Reads a byte from the current position in the file and advances the file pointer.
Type | Description |
---|---|
integer |
readBytes(integer $num) : string
Read num bytes from the current position in the file and advances the file pointer.
Name | Type | Description |
---|---|---|
$num | integer |
Type | Description |
---|---|
string |
readInt() : integer
Reads an integer from the current position in the file and advances the file pointer.
Type | Description |
---|---|
integer |
readLong() : integer | float
Returns a long integer from the current position in the file and advances the file pointer.
Type | Description |
---|---|
integer | float |
Exception | Description |
---|---|
\Zend_Search_Lucene_Exception |
readLong32Bit() : integer | float
Returns a long integer from the current position in the file, advances the file pointer and return it as float (for 32-bit platforms).
Type | Description |
---|---|
integer | float |
Exception | Description |
---|---|
\Zend_Search_Lucene_Exception |
readString() : string
Reads a string from the current position in the file and advances the file pointer.
Type | Description |
---|---|
string |
readVInt() : integer
Returns a variable-length integer from the current position in the file and advances the file pointer.
Type | Description |
---|---|
integer |
seek(integer $offset, integer $whence = SEEK_SET) : integer
Sets the file position indicator and advances the file pointer.
Name | Type | Description |
---|---|---|
$offset | integer | |
$whence | integer |
Type | Description |
---|---|
integer |
writeByte(integer $byte) : void
Writes a byte to the end of the file.
Name | Type | Description |
---|---|---|
$byte | integer |
writeBytes(string $data, integer $num = null) : void
Writes num bytes of data (all, if $num===null) to the end of the string.
Name | Type | Description |
---|---|---|
$data | string | |
$num | integer |
writeInt(integer $value) : void
Writes an integer to the end of file.
Name | Type | Description |
---|---|---|
$value | integer |
writeLong(integer $value) : void
Writes long integer to the end of file
Name | Type | Description |
---|---|---|
$value | integer |
Exception | Description |
---|---|
\Zend_Search_Lucene_Exception |
writeLong32Bit(integer | float $value) : void
Writes long integer to the end of file (32-bit platforms implementation)
Name | Type | Description |
---|---|---|
$value | integer | float |
Exception | Description |
---|---|
\Zend_Search_Lucene_Exception |
writeString(string $str) : void
Writes a string to the end of file.
Name | Type | Description |
---|---|---|
$str | string |
Exception | Description |
---|---|
\Zend_Search_Lucene_Exception |