|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.io.res.type.compress.CompressResourceProvider
public abstract class CompressResourceProvider
Constructor Summary | |
---|---|
CompressResourceProvider()
|
Method Summary | |
---|---|
Map |
getArguments()
returns the arguments defined for this resource |
abstract Compress |
getCompress(Resource file)
|
Resource |
getResource(String path)
return a resource that match given path |
String |
getScheme()
returns the scheme of the resource |
ResourceProvider |
init(String scheme,
boolean caseSensitive,
boolean async)
|
ResourceProvider |
init(String scheme,
Map arguments)
this class is called by the "Resources" at startup |
void |
lock(Resource res)
|
void |
read(Resource res)
|
void |
setResources(Resources resources)
|
long |
sizeOf()
return the size of the object |
void |
unlock(Resource res)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface railo.commons.io.res.ResourceProvider |
---|
isAttributesSupported, isCaseSensitive, isModeSupported |
Constructor Detail |
---|
public CompressResourceProvider()
Method Detail |
---|
public ResourceProvider init(String scheme, Map arguments)
ResourceProvider
init
in interface ResourceProvider
scheme
- of the provider (can be "null")arguments
- initals argument (can be "null")public ResourceProvider init(String scheme, boolean caseSensitive, boolean async)
public Resource getResource(String path)
ResourceProvider
getResource
in interface ResourceProvider
public abstract Compress getCompress(Resource file)
public String getScheme()
ResourceProvider
getScheme
in interface ResourceProvider
public void setResources(Resources resources)
setResources
in interface ResourceProvider
public void lock(Resource res) throws IOException
lock
in interface ResourceProvider
IOException
public void unlock(Resource res)
unlock
in interface ResourceProvider
public void read(Resource res) throws IOException
read
in interface ResourceProvider
IOException
public Map getArguments()
ResourceProvider
getArguments
in interface ResourceProvider
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |