Package de.intarsys.tools.locator
Class CommonLocator
- java.lang.Object
-
- de.intarsys.tools.locator.CommonLocator
-
- All Implemented Interfaces:
ISynchronizable,ILocator
- Direct Known Subclasses:
ByteArrayLocator,ClassLoaderResourceLocator,ClassResourceLocator,FileLocator,LocatorViewport,StreamLocator,StringLocator,TransientLocator
public abstract class CommonLocator extends java.lang.Object implements ILocator
-
-
Constructor Summary
Constructors Constructor Description CommonLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ILocatorcreateTempFileLocator()voiddelete()Delete the artifact referenced by this.longgetLength()Returns the length of this data container or -1 if unknownbooleanisReadOnly()trueif the specified resource is read only.voidrename(java.lang.String newName)Rename the complete physical name tonewName.voidsetReadOnly()Make the receiver read only.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.intarsys.tools.locator.ILocator
exists, getChild, getFullName, getInputStream, getLocalName, getOutputStream, getParent, getRandomAccess, getReader, getReader, getType, getTypedName, getWriter, getWriter, isDirectory, listLocators, toURL
-
Methods inherited from interface de.intarsys.tools.component.ISynchronizable
isOutOfSynch, synch
-
-
-
-
Method Detail
-
createTempFileLocator
protected ILocator createTempFileLocator() throws java.io.IOException
- Throws:
java.io.IOException
-
delete
public void delete() throws java.io.IOExceptionDescription copied from interface:ILocatorDelete the artifact referenced by this.
-
getLength
public long getLength() throws java.io.IOExceptionDescription copied from interface:ILocatorReturns the length of this data container or -1 if unknown
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:ILocatortrueif the specified resource is read only.- Specified by:
isReadOnlyin interfaceILocator- Returns:
trueif the specified resource is read only.
-
rename
public void rename(java.lang.String newName) throws java.io.IOExceptionDescription copied from interface:ILocatorRename the complete physical name tonewName.
-
setReadOnly
public void setReadOnly()
Description copied from interface:ILocatorMake the receiver read only. This is a one way switch only.- Specified by:
setReadOnlyin interfaceILocator
-
-