org.freecompany.redline
Class Scanner

java.lang.Object
  extended by org.freecompany.redline.Scanner

public class Scanner
extends Object

The scanner reads an RPM file and outputs useful information about it's contents. The scanner will output the headers of the RPM format itself, as well as the individual headers for the particular packaged content. In addition, the scanner will scan through the payload and output information about each file contained in the embedded CPIO payload.


Constructor Summary
Scanner()
           
 
Method Summary
static void main(String[] args)
          Scans a file and prints out useful information.
 Format run(ReadableChannelWrapper in)
          Reads the headers of an RPM and returns a description of it and it's format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scanner

public Scanner()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Scans a file and prints out useful information. This utility reads from standard input, and parses the binary contents of the RPM file.

Throws:
Exception - if an error occurs while reading the RPM file or it's contents

run

public Format run(ReadableChannelWrapper in)
           throws Exception
Reads the headers of an RPM and returns a description of it and it's format.

Parameters:
in - the channel wrapper to read input from
Returns:
information describing the RPM file
Throws:
Exception - if an error occurs reading the file


Copyright © 2012. All Rights Reserved.