public class

SnappyInputStream

extends InputStream
java.lang.Object
   ↳ java.io.InputStream
     ↳ org.iq80.snappy.SnappyInputStream

Class Overview

This class implements an input stream for reading Snappy compressed data of the format produced by SnappyOutputStream.

Summary

Public Constructors
SnappyInputStream(InputStream in)
Creates a Snappy input stream to read data from the specified underlying input stream.
SnappyInputStream(InputStream in, boolean verifyChecksums)
Creates a Snappy input stream to read data from the specified underlying input stream.
Public Methods
int available()
void close()
int read()
int read(byte[] output, int offset, int length)
[Expand]
Inherited Methods
From class java.io.InputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Constructors

public SnappyInputStream (InputStream in)

Creates a Snappy input stream to read data from the specified underlying input stream.

Parameters
in the underlying input stream
Throws
IOException

public SnappyInputStream (InputStream in, boolean verifyChecksums)

Creates a Snappy input stream to read data from the specified underlying input stream.

Parameters
in the underlying input stream
verifyChecksums if true, checksums in input stream will be verified
Throws
IOException

Public Methods

public int available ()

Throws
IOException

public void close ()

Throws
IOException

public int read ()

Throws
IOException

public int read (byte[] output, int offset, int length)

Throws
IOException