Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ij.io
Class PluginClassLoader.JARReader

    java.lang.Object
      ij.io.PluginClassLoader.JARReader

Enclosing class:
  PluginClassLoader

public final class PluginClassLoader.JARReader
extends java.lang.Object

Constructor Summary
`PluginClassLoader.JARReader(java.lang.String fileName)` Inner class to handle resources from a JAR or ZIP file.

Method Summary
`byte[]` | `getClass(java.lang.String name)` Returns a class file from the jar as an array of bytes
`java.lang.String` | `getFileName()`
`byte[]` | `getResource(java.lang.String name)` Returns a resource from the jar file as an array of bytes

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

Constructor Detail

### PluginClassLoader.JARReader

    public PluginClassLoader.JARReader(java.lang.String fileName)
                                throws java.io.IOException

  Inner class to handle resources from a JAR or ZIP file. Contents are stored in hastables

Parameters:
  `fileName` - a jar or zip file

Method Detail

### getClass

    public byte[] getClass(java.lang.String name)

  Returns a class file from the jar as an array of bytes

  Parameters:
    `name` - a class name without .class extension.

### getResource

    public byte[] getResource(java.lang.String name)

  Returns a resource from the jar file as an array of bytes

  Parameters:
    `name` - a resource name.

### getFileName

    public java.lang.String getFileName()

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD