org.freecompany.redline
Class Scanner

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

public class Scanner
extends java.lang.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(java.lang.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(java.lang.String[] args)
                 throws java.lang.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:
java.lang.Exception - if an error occurrs while reading the RPM file or it's contents

run

public Format run(ReadableChannelWrapper in)
           throws java.lang.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:
java.lang.Exception - if an error occurrs reading the file


Copyright © 2011. All Rights Reserved.