Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


oracle.ldap.util
Class JARReader

java.lang.Object
  extended by oracle.ldap.util.JARReader

All Implemented Interfaces:
java.io.Serializable

public class JARReader
extends java.lang.Object
implements java.io.Serializable

JAR Reader read all the resources in the JAR / ZIP file and can return them as Raw bytes. These Raw bytes could interpreted accordingly. For ex. the Raw bytes could be treated as JAVA byte code, image, or a config file Basically it is upto the user of the API to treat raw bytes as whatever he desires to treat it as.

See Also:
Serialized Form

Constructor Summary
JARReader(byte[] jarContents)
          Creates a JAR reader from the given bute array The byte array must be the JAR content
JARReader(java.util.zip.ZipInputStream zis)
          Creates a JAR reader from the specified ZipInputStream

 

Method Summary
 byte[] getResource(java.lang.String name)
          Retrieve the JAR resource identified by the given name

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JARReader

public JARReader(byte[] jarContents)
          throws java.io.IOException
Creates a JAR reader from the given bute array The byte array must be the JAR content
Throws:
java.io.IOException

JARReader

public JARReader(java.util.zip.ZipInputStream zis)
          throws java.io.IOException
Creates a JAR reader from the specified ZipInputStream
Throws:
java.io.IOException

Method Detail

getResource

public byte[] getResource(java.lang.String name)
Retrieve the JAR resource identified by the given name
Parameters:
resource - name
raw - bytes of the resource. Null if the resource does not exist

Skip navigation links

Oracle Internet Directory API Reference
11g Release 1 (11.1.1)

E10664-01


Copyright © 1999, 2009 Oracle. All Rights Reserved.