| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private transient URL | |
| private transient boolean | |
| private File |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Resource | addPath(String
The path segment to add, which should be encoded by the
encode method. path)Overrides org. |
| public boolean | |
| public String | Returns: The uri unchanged.URI to encode. uri)Overrides org. |
| public boolean | equals(Object o)
Overrides org. |
| public boolean | |
| public URL | |
| public static boolean | Returns: True of resource aliases are to be checked for (eg case insensitivity or 8.3 short names) and treated as not found.getCheckAliases. |
| public File | getFile()
Overrides org. |
| public InputStream | getInputStream()
Returns an input stream to the resource
|
| public String | |
| public OutputStream | getOutputStream()
Returns an output stream to the resource
|
| public int | Returns: the hashcode.Overrides org. |
| public boolean | isDirectory()
Overrides org. |
| public long | lastModified()
Returns the last modified time
|
| public long | |
| public String[] | list()
Overrides org. |
| public boolean | renameTo(Resource dest)
Overrides org. |
| public static void | setCheckAliases(boolean
True of resource aliases are to be checked for (eg case insensitivity or 8.3 short names) and treated as not found. checkAliases)setCheckAliases. |
| __checkAliases | back to summary |
|---|---|
| private static boolean __checkAliases | |
| _alias | back to summary |
|---|---|
| private transient URL _alias | |
| _aliasChecked | back to summary |
|---|---|
| private transient boolean _aliasChecked | |
| _file | back to summary |
|---|---|
| private File _file | |
| FileResource | back to summary |
|---|---|
| public FileResource(URL url) throws IOException, URISyntaxException | |
| FileResource | back to summary |
|---|---|
| pack-priv FileResource(URL url, URLConnection connection, File file) | |
| addPath | back to summary |
|---|---|
| public Resource addPath(String path) throws IOException, MalformedURLException Overrides org. Doc from org. Returns the resource contained inside the current resource with the given name
| |
| delete | back to summary |
|---|---|
| public boolean delete() throws SecurityException Overrides org. Deletes the given resource | |
| encode | back to summary |
|---|---|
| public String encode(String uri) Overrides org. Encode according to this resource type. File URIs are encoded. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides org. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| exists | back to summary |
|---|---|
| public boolean exists() Overrides org. Returns true if the resource exists. | |
| getAlias | back to summary |
|---|---|
| public URL getAlias() Overrides org.
| |
| getCheckAliases | back to summary |
|---|---|
| public static boolean getCheckAliases() getCheckAliases.
| |
| getFile | back to summary |
|---|---|
| public File getFile() Overrides org. Returns an File representing the given resource or NULL if this is not possible. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Overrides org. Returns an input stream to the resource | |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Returns the name of the resource | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException, SecurityException Overrides org. Returns an output stream to the resource | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Overrides org. Returns true if the respresenetd resource is a container/directory. | |
| lastModified | back to summary |
|---|---|
| public long lastModified() Overrides org. Returns the last modified time | |
| length | back to summary |
|---|---|
| public long length() Overrides org. Return the length of the resource | |
| list | back to summary |
|---|---|
| public String[] list() Overrides org. Returns a list of resources contained in the given resource | |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(Resource dest) throws SecurityException Overrides org. Rename the given resource | |
| setCheckAliases | back to summary |
|---|---|
| public static void setCheckAliases(boolean checkAliases) setCheckAliases.
| |