|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.compress.CompressorFactory
public abstract class CompressorFactory
Compressor-Factory. Use CompressorFactory.TYPE.getInstance() for an new Compressor-Instance.
| Field Summary | |
|---|---|
static CompressorFactory |
BZIP2
BZIP2 Compressor Factory |
| Method Summary | |
|---|---|
abstract Compressor |
getInstance()
Returns a compressor |
static Compressor |
getInstance(File file)
Returns an archiver, filled with an existing archive. |
static Compressor |
getInstance(String compressorName)
Returns an empty Compressor, if an matching compressor could be found within this factory. |
static void |
registerCompressor(Class clazz)
Registers a new archiver in the factory. |
static void |
registerCompressor(String className)
Registers a new archiver in the factory. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static CompressorFactory BZIP2
BZIP2 Compressor Factory
| Method Detail |
|---|
public static void registerCompressor(String className)
throws ClassNotFoundException,
CompressException
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
CompressException
public static void registerCompressor(Class clazz)
throws CompressException
clazz - full qualified archiver implementation
ArchiveException - if the new archiver does not implement the archiver interface
CompressExceptionpublic abstract Compressor getInstance()
public static Compressor getInstance(String compressorName)
throws CompressException
CompressException - if the compressor could not be created
public static Compressor getInstance(File file)
throws CompressException
file - an existing archive
CompressExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||