|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xebialabs.deployit.hostsession.common.AbstractHostFile
com.xebialabs.deployit.hostsession.cifs.CifsHostFile
public class CifsHostFile
| Field Summary |
|---|
| Fields inherited from class com.xebialabs.deployit.hostsession.common.AbstractHostFile |
|---|
session |
| Method Summary | |
|---|---|
boolean |
canExecute()
Tests whether the file or directory can be executed. |
boolean |
canRead()
Tests whether the file or directory can be read. |
boolean |
canWrite()
Tests whether the file or directory can be written. |
boolean |
delete()
Deletes the host file or directory. |
boolean |
deleteRecursively()
Deletes the host directory recursively, first deleting its contents and then the directory itself. |
boolean |
exists()
Tests whether the file or directory exists. |
java.io.InputStream |
get()
Opens the host file for reading. |
java.lang.String |
getName()
Returns the name of the host file or directory. |
java.lang.String |
getParent()
Returns the path of the parent of the host file or directory. |
java.lang.String |
getPath()
Returns the path. |
boolean |
isDirectory()
Tests whether this file is a directory. |
long |
length()
Returns the length of this file. |
java.util.List<java.lang.String> |
list()
Returns a list of strings naming the files and directories contained by the host directory. |
void |
mkdir()
Creates the directory on the host. |
void |
mkdirs()
Creates the directory on the host, including any missing parent directories if needed. |
void |
moveTo(HostFile destFile)
Moves/renames this file to the target file atomically. |
java.io.OutputStream |
put(long length)
Opens the host file for writing. |
java.lang.String |
toString()
|
| Methods inherited from class com.xebialabs.deployit.hostsession.common.AbstractHostFile |
|---|
deleteRecursively, get, get, getFile, getParentFile, getSession, listFiles, put, put, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.xebialabs.deployit.hostsession.HostFile |
|---|
deleteRecursively, get, get, getFile, getParentFile, getSession, listFiles, put, put, put |
| Method Detail |
|---|
public java.lang.String getName()
HostFile
getName in interface HostFilepublic java.lang.String getParent()
HostFile
getParent in interface HostFilepublic java.lang.String getPath()
HostFile
getPath in interface HostFile
public boolean exists()
throws RuntimeIOException
HostFile
exists in interface HostFiletrue if and only if the file or directory exists on the host; false otherwise
RuntimeIOException - if an I/O error occurs
public boolean isDirectory()
throws RuntimeIOException
HostFile
isDirectory in interface HostFiletrue if and only if the file exists and is a directory; false
otherwise
RuntimeIOException - if an I/O error occurs
public boolean canExecute()
throws RuntimeIOException
HostFile
canExecute in interface HostFiletrue if and only if the file or directory is executable on the host; false
otherwise
RuntimeIOException - if an I/O error occurs
public boolean canRead()
throws RuntimeIOException
HostFile
canRead in interface HostFiletrue if and only if the file or directory is readable on the host; false
otherwise
RuntimeIOException - if an I/O error occurs
public boolean canWrite()
throws RuntimeIOException
HostFile
canWrite in interface HostFiletrue if and only if the file or directory is writable on the host; false
otherwise
RuntimeIOException - if an I/O error occurs
public long length()
throws RuntimeIOException
HostFile
length in interface HostFileRuntimeIOException - if an I/O error occurs
public java.util.List<java.lang.String> list()
throws RuntimeIOException
HostFile
list in interface HostFileRuntimeIOException - if an I/O error occurs or this file does not denote a directory.
public void mkdir()
throws RuntimeIOException
HostFile
mkdir in interface HostFileRuntimeIOException - if an I/O error occurs
public void mkdirs()
throws RuntimeIOException
HostFile
mkdirs in interface HostFileRuntimeIOException - if an I/O error occurs
public void moveTo(HostFile destFile)
throws RuntimeIOException
HostFile
moveTo in interface HostFiledestFile - the destination file.
RuntimeIOException - if an I/O error occurs or the underlying implementation cannot move/rename the file.
public boolean delete()
throws RuntimeIOException
HostFilefalse is
returned.
delete in interface HostFiletrue if the host file or directory existed before the deletion; false otherwise
RuntimeIOException - if an I/O error occurs
public boolean deleteRecursively()
throws RuntimeIOException
HostFileHostFile.delete() method. If the
directory does not exists on the host, false is returned.
deleteRecursively in interface HostFiledeleteRecursively in class AbstractHostFiletrue if the host file or directory existed before the deletion; false otherwise
RuntimeIOException - if an I/O error occurs
public java.io.InputStream get()
throws RuntimeIOException
HostFile
get in interface HostFileRuntimeIOException - if an I/O error occurs
public java.io.OutputStream put(long length)
throws RuntimeIOException
HostFile
put in interface HostFilelength - the number of bytes that will be written to the stream
RuntimeIOException - if an I/O error occurspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||