public abstract class CommonLocator extends Object implements ILocator, Serializable
ILocator.| Constructor and Description |
|---|
CommonLocator() |
| Modifier and Type | Method and Description |
|---|---|
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(String newName)
Rename the complete physical name to
newName. |
void |
setReadOnly()
Make the receiver read only.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getChild, getFullName, getInputStream, getLocalName, getOutputStream, getParent, getRandomAccess, getReader, getReader, getType, getTypedName, getWriter, getWriter, isDirectory, listLocators, toURLisOutOfSynch, synchpublic void delete()
throws IOException
ILocatordelete in interface ILocatorIOExceptionpublic long getLength()
throws IOException
ILocatorgetLength in interface ILocatorIOException - if an I/O error occurs.public boolean isReadOnly()
ILocatortrue if the specified resource is read only.isReadOnly in interface ILocatortrue if the specified resource is read only.public void rename(String newName) throws IOException
ILocatornewName.rename in interface ILocatornewName - The new name of the ILocator. The new name is expected
to contain both local and type part of the name.IOExceptionpublic void setReadOnly()
ILocatorsetReadOnly in interface ILocatorCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.