Example usage for org.apache.commons.compress.archivers ArchiveInputStream read

List of usage examples for org.apache.commons.compress.archivers ArchiveInputStream read

Introduction

In this page you can find the example usage for org.apache.commons.compress.archivers ArchiveInputStream read.

Prototype

public int read() throws IOException 

Source Link

Document

Reads a byte of data.

Usage

From source file:de.fanero.uncompress.stream.EmptyArchiveInputStreamTest.java

@Test
public void testRead() throws Exception {

    ArchiveInputStream stream = EmptyArchiveInputStream.getInstance();

    assertThat(stream.read(), is(-1));
}