public abstract class CommonLocator extends java.lang.Object implements ILocator
| Constructor and Description |
|---|
CommonLocator() |
| Modifier and Type | Method and Description |
|---|---|
protected ILocator |
createTempFileLocator() |
void |
delete()
Delete the artifact referenced by this.
|
long |
getLength()
Returns the length of this data container or -1 if unknown
|
boolean |
isReadOnly()
true if the specified resource is read only. |
void |
rename(java.lang.String newName)
Rename the complete physical name to
newName. |
void |
setReadOnly()
Make the receiver read only.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getChild, getFullName, getInputStream, getLocalName, getOutputStream, getParent, getRandomAccess, getReader, getReader, getType, getTypedName, getWriter, getWriter, isDirectory, listLocators, toURLisOutOfSynch, synchprotected ILocator createTempFileLocator() throws java.io.IOException
java.io.IOExceptionpublic void delete()
throws java.io.IOException
ILocatorpublic long getLength()
throws java.io.IOException
ILocatorpublic boolean isReadOnly()
ILocatortrue if the specified resource is read only.isReadOnly in interface ILocatortrue if the specified resource is read only.public void rename(java.lang.String newName)
throws java.io.IOException
ILocatornewName.public void setReadOnly()
ILocatorsetReadOnly in interface ILocator