org.apache.xbean.finder.archive
Class FileArchive

java.lang.Object
  extended by org.apache.xbean.finder.archive.FileArchive
All Implemented Interfaces:
Iterable<Archive.Entry>, Archive

public class FileArchive
extends Object
implements Archive

Version:
$Rev$ $Date$

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.xbean.finder.archive.Archive
Archive.Entry
 
Constructor Summary
FileArchive(ClassLoader loader, File dir)
           
FileArchive(ClassLoader loader, URL url)
           
 
Method Summary
 Iterator<String> _iterator()
           
static String decode(String fileName)
           
 InputStream getBytecode(String className)
           
 File getDir()
           
 Iterator<Archive.Entry> iterator()
           
 Class<?> loadClass(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileArchive

public FileArchive(ClassLoader loader,
                   URL url)

FileArchive

public FileArchive(ClassLoader loader,
                   File dir)
Method Detail

getDir

public File getDir()

getBytecode

public InputStream getBytecode(String className)
                        throws IOException,
                               ClassNotFoundException
Specified by:
getBytecode in interface Archive
Throws:
IOException
ClassNotFoundException

loadClass

public Class<?> loadClass(String className)
                   throws ClassNotFoundException
Specified by:
loadClass in interface Archive
Throws:
ClassNotFoundException

iterator

public Iterator<Archive.Entry> iterator()
Specified by:
iterator in interface Iterable<Archive.Entry>

_iterator

public Iterator<String> _iterator()

decode

public static String decode(String fileName)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.