public class IlrFile extends java.io.File implements IlrURI
The IlrFile class extends java.io.File to add a root identifier. The relative file has a relative path that will be resolved by the application by matching the root identifier with a root directory registered on the application.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROTOCOL |
FILE_SEPARATOR| Constructor and Description |
|---|
IlrFile(java.io.File file)
Creates a new relative file from a java.io.File.
|
IlrFile(java.io.File parent,
java.lang.String child)
Creates a new relative file from a
parent abstract pathname and a child pathname string.
|
IlrFile(java.lang.String pathname)
Constructs a relative file from a String.
|
IlrFile(java.lang.String rootId,
java.io.File file)
Creates a new relative file from a root identifier and a java.io.File.
|
IlrFile(java.lang.String parent,
java.lang.String child)
Creates a new relative file from a parent pathname
string and a child pathname string.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
java.io.File |
getAbsoluteFile() |
java.lang.String |
getAbsolutePath() |
java.lang.String |
getRootId()
Returns the root identifier.
|
boolean |
isFiltered()
Returns
true if the URI is filtered;
false otherwise. |
void |
setRootId(java.lang.String rootId)
Set the root identifier of this relative file.
|
java.lang.String |
toString()
Returns the pathname string of this relative file.
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toURI, toURLfinalize, getClass, notify, notifyAll, wait, wait, waitexists, getDisplayPath, getDisplayRootId, getName, getPath, getType, isDirectory, lastModifiedpublic static final java.lang.String PROTOCOL
public IlrFile(java.lang.String pathname)
public IlrFile(java.lang.String parent,
java.lang.String child)
public IlrFile(java.io.File parent,
java.lang.String child)
public IlrFile(java.io.File file)
public IlrFile(java.lang.String rootId,
java.io.File file)
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void setRootId(java.lang.String rootId)
public java.lang.String getRootId()
public boolean isFiltered()
IlrURItrue if the URI is filtered;
false otherwise.isFiltered in interface IlrURIpublic java.io.File getAbsoluteFile()
getAbsoluteFile in class java.io.Filepublic java.lang.String getAbsolutePath()
getAbsolutePath in class java.io.Filepublic boolean equals(java.lang.Object obj)
equals in class java.io.Filepublic java.lang.String toString()
toString in class java.io.File© Copyright IBM Corp. 1987, 2017