java.io.File .
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| public String | |
| public Certificate[] | Returns: the certificates that were used to sign this resource to verify it or @null if none.
|
| public URL | Returns: the code base for this resource that will be used when looking up the assigned permissions for the code base in the security policy file when running under a security manager.
|
| public byte[] | Returns: the binary content of this resource ornull if it is not
available in a byte[] because, for example, it is too big.
|
| public long | |
| public long | Returns: The time the file was created. If not available, the result ofgetLastModified() will be returned.
|
| public String | Returns: The ETag for this resourceReturn the strong ETag if available (currently not supported) else return the weak ETag calculated from the content length and last modified. |
| public InputStream | Returns: An InputStream based on the contents of this resource ornull if the resource does not exist or does not
represent a fileObtain an InputStream based on the contents of this resource. |
| public long | |
| public String | Returns: the last modified time of this resource in the correct format for the HTTP Last-Modified header as specified by RFC 2616.
|
| public Manifest | |
| public String | |
| public String | |
| public URL | Returns: a URL to access the resource ornull if no such URL
is available or if the resource does not exist.
|
| public String | Returns: The path of this resource relative to the web application root. If the resource is a directory, the return value will end in '/'.
|
| public WebResourceRoot | Returns: a reference to the WebResourceRoot of which this WebResource is a part.
|
| public boolean | |
| public boolean | |
| public boolean | Returns: true for a virtual resourceIndicates if this resource is required for applications to correctly scan
the file structure but that does not exist in either the main or any
additional |
| public void | setMimeType(String
The mime type that will be associated with the resource mimeType)Set the MIME type for this Resource. |
| canRead | back to summary |
|---|---|
public boolean canRead()
| |
| delete | back to summary |
|---|---|
public boolean delete()
| |
| exists | back to summary |
|---|---|
public boolean exists()
| |
| getCanonicalPath | back to summary |
|---|---|
| public String getCanonicalPath() | |
| getCertificates | back to summary |
|---|---|
public Certificate[] getCertificates()
| |
| getCodeBase | back to summary |
|---|---|
public URL getCodeBase()
| |
| getContent | back to summary |
|---|---|
public byte[] getContent()
| |
| getContentLength | back to summary |
|---|---|
public long getContentLength()
| |
| getCreation | back to summary |
|---|---|
public long getCreation()
| |
| getETag | back to summary |
|---|---|
| public String getETag() Return the strong ETag if available (currently not supported) else return the weak ETag calculated from the content length and last modified.
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Obtain an InputStream based on the contents of this resource.
| |
| getLastModified | back to summary |
|---|---|
public long getLastModified()
| |
| getLastModifiedHttp | back to summary |
|---|---|
public String getLastModifiedHttp()
| |
| getManifest | back to summary |
|---|---|
public Manifest getManifest()
| |
| getMimeType | back to summary |
|---|---|
public String getMimeType()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| getURL | back to summary |
|---|---|
public URL getURL()
| |
| getWebappPath | back to summary |
|---|---|
public String getWebappPath()
| |
| getWebResourceRoot | back to summary |
|---|---|
public WebResourceRoot getWebResourceRoot()
| |
| isDirectory | back to summary |
|---|---|
public boolean isDirectory()
| |
| isFile | back to summary |
|---|---|
public boolean isFile()
| |
| isVirtual | back to summary |
|---|---|
| public boolean isVirtual() Indicates if this resource is required for applications to correctly scan
the file structure but that does not exist in either the main or any
additional
| |
| setMimeType | back to summary |
|---|---|
| public void setMimeType(String mimeType) Set the MIME type for this Resource.
| |