|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ExtractorFactoryService
Defines an OSGi service which can be used to create Extractor
instances which extract packaged archives.
This allows for a "mini-library" to exist inside OSGi which knows how to
handle various types of archives (e.g., zip, gz, bz2, rar, etc.) without
duplication of code across modules.
Extractor| Method Summary | |
|---|---|
boolean |
canExtract(java.io.File inputFile)
Determines if this extractor factory can produce an extractor which services the input file. |
Extractor |
createExtractor(java.io.File inputFile)
Creates a new Extractor object which can be used to extract
the specified archive file |
| Methods inherited from interface com.mmoui.manager.services.Service |
|---|
getAdvertisements, getFullProviderName, getPermissions, getShortProviderName |
| Method Detail |
|---|
boolean canExtract(java.io.File inputFile)
throws java.lang.IllegalArgumentException,
java.io.IOException
inputFile - the file which is to be checked
true if this File appears to be able
to be extracted by this factory, or false if it can not
service the specified file
java.lang.IllegalArgumentException - if the input file is a directory
or does not exist
java.io.IOException - if the file cannot be read
Extractor createExtractor(java.io.File inputFile)
throws java.lang.IllegalArgumentException,
java.io.IOException
Extractor object which can be used to extract
the specified archive file
inputFile - the file to extract
Extractor object
java.lang.IllegalArgumentException - if this file cannot be
extracted by any Extractor implementations that this
factory supports
java.io.IOException - if an error occurs while initializing the file for
extraction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||