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) : stringReads $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) : voidWrites $length number of bytes (all, if $length===null) to the end of the file.
| Name | Type | Description |
|---|---|---|
| $data | string | |
| $length | integer |

flush() : booleanFlush output.
| Type | Description |
|---|---|
| boolean |

lock(integer $lockType, $nonBlockinLock = false) : booleanLock file
| Name | Type | Description |
|---|---|---|
| $lockType | integer | |
| $nonBlockinLock |
| Type | Description |
|---|---|
| boolean |

readBinary() : stringReads binary data from the current position in the file and advances the file pointer.
| Type | Description |
|---|---|
| string |

readByte() : integerReads a byte from the current position in the file and advances the file pointer.
| Type | Description |
|---|---|
| integer |

readBytes(integer $num) : stringRead num bytes from the current position in the file and advances the file pointer.
| Name | Type | Description |
|---|---|---|
| $num | integer |
| Type | Description |
|---|---|
| string |

readInt() : integerReads an integer from the current position in the file and advances the file pointer.
| Type | Description |
|---|---|
| integer |

readLong() : integer | floatReturns 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 | floatReturns 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() : stringReads a string from the current position in the file and advances the file pointer.
| Type | Description |
|---|---|
| string |

readVInt() : integerReturns 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) : integerSets the file position indicator and advances the file pointer.
| Name | Type | Description |
|---|---|---|
| $offset | integer | |
| $whence | integer |
| Type | Description |
|---|---|
| integer |

writeByte(integer $byte) : voidWrites a byte to the end of the file.
| Name | Type | Description |
|---|---|---|
| $byte | integer |

writeBytes(string $data, integer $num = null) : voidWrites num bytes of data (all, if $num===null) to the end of the string.
| Name | Type | Description |
|---|---|---|
| $data | string | |
| $num | integer |

writeInt(integer $value) : voidWrites an integer to the end of file.
| Name | Type | Description |
|---|---|---|
| $value | integer |

writeLong(integer $value) : voidWrites long integer to the end of file
| Name | Type | Description |
|---|---|---|
| $value | integer |
| Exception | Description |
|---|---|
| \Zend_Search_Lucene_Exception |

writeLong32Bit(integer | float $value) : voidWrites 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) : voidWrites a string to the end of file.
| Name | Type | Description |
|---|---|---|
| $str | string |
| Exception | Description |
|---|---|
| \Zend_Search_Lucene_Exception |