com.objectwave.utility
Class JarReader

java.lang.Object
  |
  +--com.objectwave.utility.JarReader

public class JarReader
extends java.lang.Object

A helper class that assists in the manipulation of Jar files. A typical usage JarReader rdr = new JarReader(fileName); byte [] result = rdr.getResource("com/objectwave/classFile/AnImage.gif");

Author:
Dave Hoag

Constructor Summary
JarReader(java.lang.String fileName)
          Some basic read like operations for a jar.
 
Method Summary
 boolean contains(java.lang.String fileName)
           
 java.util.Enumeration elements()
           
 byte[] getData(java.util.Enumeration e)
           
 java.lang.String getName()
           
 byte[] getResource(java.lang.String name)
          Get the byte [] from the jar file associated with the file name.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarReader

public JarReader(java.lang.String fileName)
          throws java.io.IOException
Some basic read like operations for a jar.

Method Detail

contains

public boolean contains(java.lang.String fileName)

elements

public java.util.Enumeration elements()

getData

public byte[] getData(java.util.Enumeration e)

getName

public java.lang.String getName()

getResource

public byte[] getResource(java.lang.String name)
Get the byte [] from the jar file associated with the file name.


main

public static void main(java.lang.String[] args)