de.intarsys.tools.locator
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, wait
exists, getChild, getFullName, getInputStream, getLocalName, getOutputStream, getParent, getRandomAccess, getReader, getReader, getType, getTypedName, getWriter, getWriter, isDirectory, listLocators, toURL
isOutOfSynch, synch
protected ILocator createTempFileLocator() throws java.io.IOException
java.io.IOException
public void delete() throws java.io.IOException
ILocator
public long getLength() throws java.io.IOException
ILocator
public boolean isReadOnly()
ILocator
true
if the specified resource is read only.isReadOnly
in interface ILocator
true
if the specified resource is read only.public void rename(java.lang.String newName) throws java.io.IOException
ILocator
newName
.public void setReadOnly()
ILocator
setReadOnly
in interface ILocator