# phpman > man > Plucene::Store::InputStream(3pm)

## NAME
    [Plucene::Store::InputStream](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AStore%3A%3AInputStream/markdown) - a random-access input stream

## SYNOPSIS
            # isa [IO::File](https://www.chedong.com/phpMan.php/perldoc/IO%3A%3AFile/markdown)

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

## METHODS
  new
            my $inputstream = [Plucene::Store::InputStream](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AStore%3A%3AInputStream/markdown)->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.

