Class Zend_Search_Lucene_Storage_File_Filesystem

Description
  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Search/Lucene/Storage/File/Filesystem.php (line 37)

Zend_Search_Lucene_Storage_File
   |
   --Zend_Search_Lucene_Storage_File_Filesystem
Method Summary
Zend_Search_Lucene_Storage_File_Filesystem __construct (string $filename, [string $mode = 'r+b'])
void close ()
integer seek (integer $offset, [integer $whence = SEEK_SET])
integer size ()
integer tell ()
string _fread ([integer $length = 1])
void _fwrite (string $data, [integer $length = null])
Methods
Constructor __construct (line 52)

Class constructor. Open the file.

  • access: public
Zend_Search_Lucene_Storage_File_Filesystem __construct (string $filename, [string $mode = 'r+b'])
  • string $filename
  • string $mode
close (line 107)

Close File object

  • access: public
void close ()
seek (line 87)

Sets the file position indicator and advances the file pointer.

The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence, whose values are defined as follows: SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset. (To move to a position before the end-of-file, you need to pass a negative value in offset.) SEEK_CUR is the only supported offset type for compound files

Upon success, returns 0; otherwise, returns -1

  • access: public
integer seek (integer $offset, [integer $whence = SEEK_SET])
  • integer $offset
  • integer $whence

Redefinition of:
Zend_Search_Lucene_Storage_File::seek()
Sets the file position indicator and advances the file pointer.
size (line 120)

Get the size of the already opened file

  • access: public
integer size ()
tell (line 98)

Get file position.

  • access: public
integer tell ()

Redefinition of:
Zend_Search_Lucene_Storage_File::tell()
Get file position.
_fread (line 136)

Read a $length bytes from the file and advance the file pointer.

  • access: protected
string _fread ([integer $length = 1])
  • integer $length

Redefinition of:
Zend_Search_Lucene_Storage_File::_fread()
Reads $length number of bytes at the current position in the file and advances the file pointer.
_fwrite (line 162)

Writes $length number of bytes (all, if $length===null) to the end of the file.

  • access: protected
void _fwrite (string $data, [integer $length = null])
  • string $data
  • integer $length

Redefinition of:
Zend_Search_Lucene_Storage_File::_fwrite()
Writes $length number of bytes (all, if $length===null) to the end of the file.

Inherited Methods

Inherited From Zend_Search_Lucene_Storage_File

Zend_Search_Lucene_Storage_File::readBinary()
Zend_Search_Lucene_Storage_File::readByte()
Zend_Search_Lucene_Storage_File::readBytes()
Zend_Search_Lucene_Storage_File::readInt()
Zend_Search_Lucene_Storage_File::readLong()
Zend_Search_Lucene_Storage_File::readString()
Zend_Search_Lucene_Storage_File::readVInt()
Zend_Search_Lucene_Storage_File::seek()
Zend_Search_Lucene_Storage_File::tell()
Zend_Search_Lucene_Storage_File::writeByte()
Zend_Search_Lucene_Storage_File::writeBytes()
Zend_Search_Lucene_Storage_File::writeInt()
Zend_Search_Lucene_Storage_File::writeLong()
Zend_Search_Lucene_Storage_File::writeString()
Zend_Search_Lucene_Storage_File::writeVInt()
Zend_Search_Lucene_Storage_File::_fread()
Zend_Search_Lucene_Storage_File::_fwrite()

Documentation generated on Sun, 29 Oct 2006 21:27:15 -0600 by phpDocumentor 1.3.0RC6