|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.unicore.hila.common.BaseResource eu.unicore.hila.common.grid.BaseFile
public abstract class BaseFile
Field Summary | |
---|---|
protected String |
path
|
Fields inherited from class eu.unicore.hila.common.BaseResource |
---|
location |
Constructor Summary | |
---|---|
BaseFile(eu.unicore.hila.Location _location)
|
Method Summary | |
---|---|
void |
chmod(boolean _readable,
boolean _writable,
boolean _executable)
Default implementation, delegates to three single calls for setting each of the flags. |
void |
copyTo(File _other)
default implementation not overwriting possibly existing target file |
void |
copyTo(File _other,
boolean _overwrite)
default implementation not overwriting possibly existing target file and not doing recursive copy of directory structures |
boolean |
delete()
|
SimpleTransfer |
exportToLocalFile(File localFile)
Don't overwrite by default |
SimpleTransfer |
exportToLocalFile(File localFile,
boolean _overwrite)
Don't do recursive export by default. |
List<eu.unicore.hila.Resource> |
getChildren()
|
eu.unicore.hila.Metadata |
getMetadata()
|
String |
getPath()
|
SimpleTransfer |
importFromLocalFile(File localFile)
Don't overwrite by default |
SimpleTransfer |
importFromLocalFile(File localFile,
boolean _overwrite)
Don't do recursive import by default. |
SimpleTransfer |
importFromStream(InputStream _is)
default implementation of importFromStream not overwriting an existing remote file |
boolean |
isRoot()
|
boolean |
mkdir()
default implementation of mkdir, not creating parent directories |
void |
moveTo(File _other)
default implementation not overwriting possibly existing target file |
ThirdPartyTransfer |
transfer(File _other)
default implementation not overwriting possibly existing target file |
ThirdPartyTransfer |
transfer(File _other,
boolean _overwrite)
default implementation not overwriting and not recursive |
Methods inherited from class eu.unicore.hila.common.BaseResource |
---|
findParentLocationOfType, getChild, getLocation, getName, getParent, ok |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface eu.unicore.hila.grid.File |
---|
copyTo, delete, exists, exportToLocalFile, exportToStream, getStorage, importFromLocalFile, importFromStream, isDirectory, isExecutable, isReadable, isWritable, lastModified, ls, mkdir, moveTo, setIsExecutable, setIsReadable, setIsWritable, size, transfer |
Methods inherited from interface eu.unicore.hila.Resource |
---|
getChild, getLocation, getName, getParent, ok |
Field Detail |
---|
protected String path
Constructor Detail |
---|
public BaseFile(eu.unicore.hila.Location _location)
location
- Method Detail |
---|
public eu.unicore.hila.Metadata getMetadata()
getMetadata
in interface eu.unicore.hila.Resource
getMetadata
in class eu.unicore.hila.common.BaseResource
Resource.getMetadata()
public SimpleTransfer exportToLocalFile(File localFile) throws eu.unicore.hila.exceptions.HiLAException
exportToLocalFile
in interface File
eu.unicore.hila.exceptions.HiLAException
File.exportToLocalFile(java.io.File)
public SimpleTransfer exportToLocalFile(File localFile, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
exportToLocalFile
in interface File
eu.unicore.hila.exceptions.HiLAException
File.exportToLocalFile(java.io.File, boolean)
public final SimpleTransfer importFromStream(InputStream _is) throws eu.unicore.hila.exceptions.HiLAException
importFromStream
in interface File
eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.grid.File#importAsStream()
public SimpleTransfer importFromLocalFile(File localFile) throws eu.unicore.hila.exceptions.HiLAException
importFromLocalFile
in interface File
eu.unicore.hila.exceptions.HiLAException
File.importFromLocalFile(java.io.File)
public SimpleTransfer importFromLocalFile(File localFile, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
importFromLocalFile
in interface File
eu.unicore.hila.exceptions.HiLAException
File.importFromLocalFile(java.io.File, boolean)
public void chmod(boolean _readable, boolean _writable, boolean _executable) throws eu.unicore.hila.exceptions.HiLAException
chmod
in interface File
eu.unicore.hila.exceptions.HiLAException
File.chmod(boolean, boolean, boolean)
public void copyTo(File _other) throws eu.unicore.hila.exceptions.HiLAException
copyTo
in interface File
eu.unicore.hila.exceptions.HiLAException
File.copyTo(eu.unicore.hila.grid.File)
public void copyTo(File _other, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
copyTo
in interface File
eu.unicore.hila.exceptions.HiLAException
File.copyTo(eu.unicore.hila.grid.File, boolean)
public void moveTo(File _other) throws eu.unicore.hila.exceptions.HiLAException
moveTo
in interface File
eu.unicore.hila.exceptions.HiLAException
File.moveTo(eu.unicore.hila.grid.File)
public final boolean mkdir() throws eu.unicore.hila.exceptions.HiLAException
mkdir
in interface File
eu.unicore.hila.exceptions.HiLAException
File.mkdir()
public ThirdPartyTransfer transfer(File _other) throws eu.unicore.hila.exceptions.HiLAException
transfer
in interface File
eu.unicore.hila.exceptions.HiLAException
File.transfer(eu.unicore.hila.grid.File)
public ThirdPartyTransfer transfer(File _other, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
transfer
in interface File
eu.unicore.hila.exceptions.HiLAException
File.transfer(eu.unicore.hila.grid.File,
boolean)
public boolean delete() throws eu.unicore.hila.exceptions.HiLAException
delete
in interface File
eu.unicore.hila.exceptions.HiLAException
File.delete()
public boolean isRoot()
isRoot
in interface File
File.isRoot()
public String getPath()
public List<eu.unicore.hila.Resource> getChildren() throws eu.unicore.hila.exceptions.HiLAException
getChildren
in interface eu.unicore.hila.Resource
eu.unicore.hila.exceptions.HiLAException
Resource.getChildren()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |