Package helma.framework.repository
Class ZipResource
java.lang.Object
helma.framework.repository.AbstractResource
helma.framework.repository.ZipResource
- All Implemented Interfaces:
Resource
-
Field Summary
Fields inherited from class helma.framework.repository.AbstractResource
overloaded
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ZipResource
(String zipentryName, ZipRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
exists()
Checks wether this resource actually (still) existsReturns the short name of the resource with the file extension (everything following the last dot character) cut off.Returns the content of the resourcegetContent
(String encoding) Returns the content of the resource in a given encodingReturns an input stream to the content of the resourcelong
Returns the lengh of the resource's contentgetName()
Returns the name of the resource; does not include the name of the repository the resource was fetched fromReturns the repository the resource does belong toReturns the short name of the resource which is its name exclusive file ending if it existsgetUrl()
Returns an url to the resource if the repository of this resource is able to provide urlsint
hashCode()
long
Returns the date the resource was last modifiedtoString()
Methods inherited from class helma.framework.repository.AbstractResource
getOverloadedResource, setOverloadedResource
-
Constructor Details
-
ZipResource
-
-
Method Details
-
lastModified
public long lastModified()Description copied from interface:Resource
Returns the date the resource was last modified- Returns:
- last modified date
-
getInputStream
Description copied from interface:Resource
Returns an input stream to the content of the resource- Returns:
- content input stream
- Throws:
IOException
- I/O related problem
-
exists
public boolean exists()Description copied from interface:Resource
Checks wether this resource actually (still) exists- Returns:
- true if the resource exists
-
getContent
Description copied from interface:Resource
Returns the content of the resource in a given encoding- Parameters:
encoding
- the character encoding- Returns:
- content
- Throws:
IOException
- I/O related problem
-
getContent
Description copied from interface:Resource
Returns the content of the resource- Returns:
- content
- Throws:
IOException
- I/O related problem
-
getName
Description copied from interface:Resource
Returns the name of the resource; does not include the name of the repository the resource was fetched from- Returns:
- name of the resource
-
getShortName
Description copied from interface:Resource
Returns the short name of the resource which is its name exclusive file ending if it exists- Returns:
- short name of the resource
-
getBaseName
Description copied from interface:Resource
Returns the short name of the resource with the file extension (everything following the last dot character) cut off.- Returns:
- the file name without the file extension
-
getUrl
Description copied from interface:Resource
Returns an url to the resource if the repository of this resource is able to provide urls- Returns:
- url to the resource
-
getLength
public long getLength()Description copied from interface:Resource
Returns the lengh of the resource's content- Returns:
- content length
-
getRepository
Description copied from interface:Resource
Returns the repository the resource does belong to- Returns:
- upper repository
-
hashCode
public int hashCode() -
equals
-
toString
-