public final class ZipResource extends AbstractResource
baseName, name, path, repository| Modifier | Constructor and Description |
|---|---|
protected |
ZipResource(String childName,
ZipRepository repository,
ZipEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
exists()
Checks wether this resource actually (still) exists
|
long |
getChecksum()
Checksum of the resource content.
|
InputStream |
getInputStream()
Returns an input stream to the content of the resource
|
long |
getLength()
Returns the length of the resource's content
|
URL |
getUrl()
Returns an url to the resource if the repository of this resource is
able to provide urls.
|
int |
hashCode() |
long |
lastModified()
Returns the date the resource was last modified
|
String |
toString() |
getBaseName, getContent, getContent, getLineNumber, getModuleName, getName, getParentRepository, getPath, getReader, getReader, getRelativePath, getRootRepository, getStripShebang, isAbsolute, setAbsolute, setBaseNameFromName, setStripShebang, stripShebangprotected ZipResource(String childName, ZipRepository repository, ZipEntry entry)
public long lastModified()
Trackablepublic long getChecksum()
TrackablegetChecksum in interface TrackablegetChecksum in class AbstractResourcepublic InputStream getInputStream() throws IOException
ResourceIOException - if a I/O related error occurspublic boolean exists()
throws IOException
TrackableIOExceptionpublic URL getUrl() throws MalformedURLException
TrackableMalformedURLExceptionpublic long getLength()
ResourceCopyright © 2016. All rights reserved.