Java org.apache.commons.compress.archivers.cpio CpioArchiveInputStream fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.compress.archivers.cpio CpioArchiveInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.compress.archivers.cpio CpioArchiveInputStream.

The text is from its open source code.

Constructor

CpioArchiveInputStream(final InputStream in)
Construct the cpio input stream

Method

voidclose()
Closes the CPIO input stream.
CpioArchiveEntrygetNextCPIOEntry()
Reads the next CPIO file entry and positions stream at the beginning of the entry data.
ArchiveEntrygetNextEntry()
booleanmatches(byte[] signature, int length)
Checks if the signature matches one of the following magic values: Strings: "070701" - MAGIC_NEW "070702" - MAGIC_NEW_CRC "070707" - MAGIC_OLD_ASCII Octal Binary value: 070707 - MAGIC_OLD_BINARY (held as a short) = 0x71C7 or 0xC771
intread(byte b[])
Reads some number of bytes from the input stream and stores them into the buffer array b.