---
name: "Plucene::Store::InputStream"
section: "3pm"
platform: "linux"
package: "libplucene-perl"
version: "1.25-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Plucene::Store::InputStream"
---

# Plucene::Store::InputStream(3pm)

a random-access input stream

## 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.
