Tony Bowden > Plucene > Plucene::Store::InputStream

Download:
Plucene-1.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  5
View/Report Bugs
Source  

NAME ^

Plucene::Store::InputStream - a random-access input stream

SYNOPSIS ^

        # isa IO::File

DESCRIPTION ^

A random-access input stream.Used for all Plucene index input operations.

METHODS ^

new

        my $inputstream = Plucene::Store::InputStream->new($file);

Create a new input stream.

fh / read / seek / tell / getc / print / eof / close

File operations

clone

This will return a clone of this stream.

read_byte

This will read and return a single byte.

read_int

This will read four bytes and return an integer.

read_vint

This will read an integer stored in a variable-length format.

read_vlong

This will read a long and stored in variable-length format

read_string

This will read a string.

read_long

This will read eight bytes and return a long.

syntax highlighting: