\Zend_Search_Lucene_Storage_File_Memory
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Storage_File_Memory
extends Zend_Search_Lucene_Storage_File
{
- // members
- private $_data;
- private integer $_position = 0;
- // methods
- public void __construct()
- protected string _fread()
- public integer seek()
- public integer tell()
- public boolean flush()
- protected void _fwrite()
- public boolean lock()
- public void unlock()
- public integer readByte()
- public void writeByte()
- public string readBytes()
- public void writeBytes()
- public integer readInt()
- public void writeInt()
- public integer readLong()
- public void writeLong()
- public integer|float readLong32Bit()
- public void writeLong32Bit()
- public integer readVInt()
- public void writeVInt()
- public string readString()
- public void writeString()
- public string readBinary()
- // Inherited methods from Zend_Search_Lucene_Storage_File
- protected abstract string _fread()
- public abstract integer seek()
- public abstract integer tell()
- public abstract boolean flush()
- protected abstract void _fwrite()
- public abstract boolean lock()
- public abstract void unlock()
- public integer readByte()
- public void writeByte()
- public string readBytes()
- public void writeBytes()
- public integer readInt()
- public void writeInt()
- public integer|float readLong()
- public void writeLong()
- public integer|float readLong32Bit()
- public void writeLong32Bit()
- public integer readVInt()
- public void writeVInt()
- public string readString()
- public void writeString()
- public string readBinary()
Hierarchy
Extends
Members
private
- $_data
—
string
FileData - $_position
—
integer
File Position
Methods
protected
- _fread() — Reads $length number of bytes at the current position in the file and advances the file pointer.
- _fwrite() — Writes $length number of bytes (all, if $length===null) to the end of the file.
public
- __construct() — Object constractor
- flush() — Flush output.
- lock() — Lock file
- readBinary() — Reads binary data from the current position in the file and advances the file pointer.
- readByte() — Reads a byte from the current position in the file and advances the file pointer.
- readBytes() — Read num bytes from the current position in the file and advances the file pointer.
- readInt() — Reads an integer from the current position in the file and advances the file pointer.
- readLong() — Returns a long integer from the current position in the file and advances the file pointer.
- readLong32Bit() — Returns a long integer from the current position in the file, advances the file pointer and return it as float (for 32-bit platforms).
- readString() — Reads a string from the current position in the file and advances the file pointer.
- readVInt() — Returns a variable-length integer from the current position in the file and advances the file pointer.
- seek() — Sets the file position indicator and advances the file pointer.
- tell() — Get file position.
- unlock() — Unlock file
- writeByte() — Writes a byte to the end of the file.
- writeBytes() — Writes num bytes of data (all, if $num===null) to the end of the string.
- writeInt() — Writes an integer to the end of file.
- writeLong() — Writes long integer to the end of file
- writeLong32Bit() — Writes long integer to the end of file (32-bit platforms implementation)
- writeString() — Writes a string to the end of file.
- writeVInt() — Writes a variable-length integer to the end of file.
Inherited from Zend_Search_Lucene_Storage_File
protected
- _fread() — Reads $length number of bytes at the current position in the file and advances the file pointer.
- _fwrite() — Writes $length number of bytes (all, if $length===null) to the end of the file.
public
- flush() — Flush output.
- lock() — Lock file
- readBinary() — Reads binary data from the current position in the file and advances the file pointer.
- readByte() — Reads a byte from the current position in the file and advances the file pointer.
- readBytes() — Read num bytes from the current position in the file and advances the file pointer.
- readInt() — Reads an integer from the current position in the file and advances the file pointer.
- readLong() — Returns a long integer from the current position in the file and advances the file pointer.
- readLong32Bit() — Returns a long integer from the current position in the file, advances the file pointer and return it as float (for 32-bit platforms).
- readString() — Reads a string from the current position in the file and advances the file pointer.
- readVInt() — Returns a variable-length integer from the current position in the file and advances the file pointer.
- seek() — Sets the file position indicator and advances the file pointer.
- tell() — Get file position.
- unlock() — Unlock file
- writeByte() — Writes a byte to the end of the file.
- writeBytes() — Writes num bytes of data (all, if $num===null) to the end of the string.
- writeInt() — Writes an integer to the end of file.
- writeLong() — Writes long integer to the end of file
- writeLong32Bit() — Writes long integer to the end of file (32-bit platforms implementation)
- writeString() — Writes a string to the end of file.
- writeVInt() — Writes a variable-length integer to the end of file.