|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.compress.ArchiverFactory
public class ArchiverFactory
Provides implementations for all ArchiverFactory methods.
| Method Summary | |
|---|---|
static Archive |
getInstance(File file)
Returns an archiver, filled with an existing archive. |
static Archive |
getInstance(String archiverName)
Returns an empty Archive, if an archiver could be found for this factory. |
static void |
registerArchiver(Class clazz)
Registers a new archiver in the factory. |
static void |
registerArchiver(String className)
Registers a new archiver in the factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerArchiver(String className)
throws ClassNotFoundException,
ArchiveException
className - full qualified archiver implementation
ClassNotFoundException - if the new archiver class could not be found
ArchiveException - if the new archiver does not implement the archiver interface
public static void registerArchiver(Class clazz)
throws ArchiveException
clazz - full qualified archiver implementation
ArchiveException - if the new archiver does not implement the archiver interface
public static Archive getInstance(String archiverName)
throws ArchiveException
ArchiveException - if the archiver could not be created
public static Archive getInstance(File file)
throws ArchiveException
file - an existing archive
ArchiveException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||