java.lang.Object
java.io.InputStream
org.apache.commons.compress.archivers.ArchiveInputStream<org.apache.commons.compress.archivers.cpio.CpioArchiveEntry>
io.kojan.javadeptools.rpm.RpmArchiveInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RpmArchiveInputStream
extends org.apache.commons.compress.archivers.ArchiveInputStream<org.apache.commons.compress.archivers.cpio.CpioArchiveEntry>
A class for reading RPM package as an archive.
- Author:
- Mikolaj Izdebski
-
Constructor Summary
ConstructorsConstructorDescriptionRpmArchiveInputStream(Path path) Opens RPM package from disk asArchiveInputStream -
Method Summary
Methods inherited from class org.apache.commons.compress.archivers.ArchiveInputStream
canReadEntryData, count, count, getBytesRead, getCount, pushedBackBytesMethods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
RpmArchiveInputStream
Opens RPM package from disk asArchiveInputStream- Parameters:
path- path to a file to read as RPM package- Throws:
IOException- when given file is not a valid RPM package or when I/O error occurs reading package from disk
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getNextEntry
public org.apache.commons.compress.archivers.cpio.CpioArchiveEntry getNextEntry() throws IOException- Specified by:
getNextEntryin classorg.apache.commons.compress.archivers.ArchiveInputStream<org.apache.commons.compress.archivers.cpio.CpioArchiveEntry>- Throws:
IOException
-
read
- Overrides:
readin classorg.apache.commons.compress.archivers.ArchiveInputStream<org.apache.commons.compress.archivers.cpio.CpioArchiveEntry>- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-