public abstract class ResourceReference extends java.lang.Object implements java.io.Serializable
Modifiers | Name | Description |
---|---|---|
static class |
ResourceReference.Version |
Modifiers | Name | Description |
---|---|---|
protected ResourceReference |
childOfResource |
Type Params | Return Type | Name and description |
---|---|---|
|
public abstract ResourceReference |
createNew(java.lang.String location) |
|
public abstract boolean |
delete() |
|
public void |
destroy() |
|
public ResourceReference |
findChildDirectory(java.lang.String relativePath) Find a directory by path (can be single name) in the matching directory and child matching directories |
|
public ResourceReference |
findChildFile(java.lang.String relativePath) Find a file by path (can be single name) in the matching directory and child matching directories |
|
public ResourceReference |
findMatchingDirectory() Find the directory with a name that matches the current filename (minus the extension) |
|
public java.lang.String |
getActualChildPath() |
|
public ResourceReference |
getChild(java.lang.String childName) Get a reference to the child of this directory or this file in the matching directory |
|
public java.util.List<ResourceReference> |
getChildren() Get a list of references to all files in this directory or for a file in the matching directory |
|
public java.lang.String |
getContentType() The content (MIME) type for this content, if known or can be determined. |
|
public static java.lang.String |
getContentType(java.lang.String filename) |
|
public Version |
getCurrentVersion() |
|
public abstract java.util.List<ResourceReference> |
getDirectoryEntries() Get the entries of a directory |
|
public abstract boolean |
getExists() |
|
public java.lang.String |
getFileName() One part of the URI not easy to get from the URI object, basically the last part of the path. |
|
public abstract long |
getLastModified() |
|
public abstract java.lang.String |
getLocation() |
|
public static java.lang.String |
getLocationPrefix(java.lang.String location) |
|
public java.util.ArrayList<Version> |
getNextVersions(java.lang.String versionName) |
|
public abstract java.io.OutputStream |
getOutputStream() |
|
public ResourceReference |
getParent() Get the parent directory, null if it is the root (no parent). |
|
public Version |
getRootVersion() |
|
public abstract long |
getSize() |
|
public abstract java.lang.String |
getText() |
|
public java.lang.String |
getText(java.lang.String versionName) |
|
public java.net.URI |
getUri() |
|
public abstract java.net.URL |
getUrl() |
|
public Version |
getVersion(java.lang.String versionName) |
|
public java.util.ArrayList<Version> |
getVersionHistory() |
|
public abstract ResourceReference |
init(java.lang.String location) |
|
public boolean |
isBinary() |
|
public static boolean |
isBinaryContentType(java.lang.String contentType) |
|
public static boolean |
isBinaryFilename(java.lang.String filename) |
|
public abstract boolean |
isDirectory() |
|
public abstract boolean |
isFile() |
|
public boolean |
isText() |
|
public static boolean |
isTextContentType(java.lang.String contentType) |
|
public static boolean |
isTextFilename(java.lang.String filename) |
|
public abstract ResourceReference |
makeDirectory(java.lang.String name) |
|
public abstract ResourceReference |
makeFile(java.lang.String name) |
|
public abstract void |
move(java.lang.String newLocation) |
|
public abstract java.io.InputStream |
openStream() |
|
public java.io.InputStream |
openStream(java.lang.String versionName) |
|
public void |
putBytes(byte[] bytes) |
|
public abstract void |
putStream(java.io.InputStream stream) |
|
public abstract void |
putText(java.lang.String text) |
|
public static java.lang.String |
stripLocationPrefix(java.lang.String location) |
|
public abstract boolean |
supportsAll() |
|
public abstract boolean |
supportsDirectory() |
|
public abstract boolean |
supportsExists() |
|
public abstract boolean |
supportsLastModified() |
|
public abstract boolean |
supportsSize() |
|
public abstract boolean |
supportsUrl() |
|
public boolean |
supportsVersion() |
|
public abstract boolean |
supportsWrite() |
|
public java.lang.String |
toString() |
|
public void |
walkChildTree(java.util.List<java.util.Map> allChildFileFlatList, java.util.List<java.util.Map> childResourceList) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Find a directory by path (can be single name) in the matching directory and child matching directories
Find a file by path (can be single name) in the matching directory and child matching directories
Find the directory with a name that matches the current filename (minus the extension)
Get a reference to the child of this directory or this file in the matching directory
Get a list of references to all files in this directory or for a file in the matching directory
The content (MIME) type for this content, if known or can be determined.
Get the entries of a directory
One part of the URI not easy to get from the URI object, basically the last part of the path.
Get the parent directory, null if it is the root (no parent).