|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectits.backbone.domain.ReadJar
| Constructor Summary | |
ReadJar()
constructor |
|
| Method Summary | |
void |
dissolveLoader()
dissolve loader, sets the loader to null |
java.lang.Object |
instantiateDataFactory()
instantiates a data factory object |
static void |
main(java.lang.String[] args)
main method |
void |
readByteArray(byte[] bytes)
Reads an entire Jar formatted object stored in a byte[] array, loading all classes contained therein. |
void |
readFile(java.io.File file)
Reads an entire Jar formatted object from a file, loading all classes contained therein. |
void |
readZipInputStream(java.util.zip.ZipInputStream zis)
Reads an entire Jar formatted object, loading all classes contained therein. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReadJar()
| Method Detail |
public void readFile(java.io.File file)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.lang.ClassNotFoundException
file - a file object
java.io.IOException - thrown if the file cannot be read properly
java.lang.IllegalArgumentException - thrown if the file is null
java.lang.ClassNotFoundException - thrown if a class cannot be found by the class loader
public void readZipInputStream(java.util.zip.ZipInputStream zis)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.lang.ClassNotFoundException
zis - a ZipInputStream object
java.io.IOException - thrown if the zis cannot be read properly
java.lang.IllegalArgumentException - thrown if the zis is null
java.lang.ClassNotFoundException - thrown if a class cannot be found by the class loader
public void readByteArray(byte[] bytes)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.lang.ClassNotFoundException
bytes - a byte array
java.io.IOException - thrown if the byte[] array cannot be read properly
java.lang.IllegalArgumentException - thrown if the byte[] array is null or empty
java.lang.ClassNotFoundException - thrown if a class cannot be found by the class loader
public java.lang.Object instantiateDataFactory()
throws java.lang.Exception
java.lang.Exceptionpublic void dissolveLoader()
public static void main(java.lang.String[] args)
throws java.lang.IllegalArgumentException
args - String[] of input arguments
java.lang.IllegalArgumentException - thrown if bad inputs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||