java.lang.Object
org.xbib.rpm.RpmReader
The RPM reader reads an archive and outputs useful information about its contents. The reader will
output the headers of the RPM format itself, as well as the individual headers for the particular
packaged content.
In addition, the reader will read through the payload and output information about each file
contained in the embedded CPIO payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(InputStream inputStream) read(ReadableChannelWrapper wrapper, InputStream inputStream) readFormat(InputStream inputStream) readFormat(Path path) readFormat(ReadableChannelWrapper readableChannelWrapper, InputStream inputStream) readHeader(InputStream inputStream) readHeader(Path path) readHeader(ReadableChannelWrapper channelWrapper) Reads the headers of an RPM and returns a description of it and it's format.
-
Constructor Details
-
RpmReader
public RpmReader()
-
-
Method Details
-
readFormat
- Throws:
IOException
-
readFormat
- Throws:
IOException
-
readFormat
public Format readFormat(ReadableChannelWrapper readableChannelWrapper, InputStream inputStream) throws IOException - Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
public RpmReaderResult read(ReadableChannelWrapper wrapper, InputStream inputStream) throws IOException - Throws:
IOException
-
readHeader
- Throws:
IOException
-
readHeader
- Throws:
IOException
-
readHeader
Reads the headers of an RPM and returns a description of it and it's format.- Parameters:
channelWrapper- the channel wrapper to read input from- Returns:
- information describing the RPM file
- Throws:
IOException- if an error occurs reading the file
-