|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AbstractFileService com.ibm.etools.iseries.services.ifs.files.IFSFileService
public class IFSFileService
Field Summary | |
---|---|
static int |
BUFFER_SIZE
|
static String |
copyright
|
static int |
KB_IN_BYTES
|
static int |
NUM_OF_KB
|
Constructor Summary | |
---|---|
IFSFileService(IToolboxSessionProvider toolboxProvider)
|
Method Summary | |
---|---|
protected IHostFile[] |
convertToHostFiles(IFSFile[] list,
int type)
|
void |
copy(String srcParent,
String srcName,
String tgtParent,
String tgtName,
IProgressMonitor monitor)
|
void |
copyBatch(String[] srcParents,
String[] srcNames,
String tgtParent,
IProgressMonitor monitor)
|
IHostFile |
createFile(String remoteParent,
String fileName,
IProgressMonitor monitor)
|
IHostFile |
createFolder(String remoteParent,
String folderName,
IProgressMonitor monitor)
|
void |
delete(String remoteParent,
String fileName,
IProgressMonitor monitor)
|
void |
download(String remoteParent,
String remoteFile,
File localFile,
boolean isBinary,
String hostEncoding,
IProgressMonitor monitor)
|
String |
getCurrentDirectory()
Get the current directory for this connection |
String |
getDescription()
|
String |
getEncoding(IProgressMonitor monitor)
|
IHostFile |
getFile(String remoteParent,
String name,
IProgressMonitor monitor)
|
InputStream |
getInputStream(String remoteParent,
String remoteFile,
boolean isBinary,
IProgressMonitor monitor)
|
String |
getName()
|
OutputStream |
getOutputStream(String remoteParent,
String remoteFile,
int options,
IProgressMonitor monitor)
|
IHostFile[] |
getRoots(IProgressMonitor monitor)
|
IHostFile |
getUserHome()
|
void |
initService(IProgressMonitor monitor)
|
protected IHostFile[] |
internalFetch(String parentPath,
String fileFilter,
int fileType,
IProgressMonitor monitor)
|
boolean |
isCaseSensitive()
|
void |
move(String srcParent,
String srcName,
String tgtParent,
String tgtName,
IProgressMonitor monitor)
|
void |
rename(String remoteParent,
String oldName,
String newName,
IHostFile oldFile,
IProgressMonitor monitor)
|
void |
rename(String remoteParent,
String oldName,
String newName,
IProgressMonitor monitor)
|
void |
setLastModified(String parent,
String name,
long timestamp,
IProgressMonitor monitor)
|
void |
setReadOnly(String parent,
String name,
boolean readOnly,
IProgressMonitor monitor)
|
void |
setSequenceNumberStrip(boolean shouldStrip)
Set boolean flag for stripping sequence number or not. |
boolean |
shouldStripSequenceNumber()
Return true if sequence number should be stripped, false otherwise. |
boolean |
supportsEncodingConversion()
|
void |
uninitService(IProgressMonitor monitor)
|
void |
upload(File localFile,
String remoteParent,
String remoteFile,
boolean isBinary,
String srcEncoding,
String hostEncoding,
IProgressMonitor monitor)
|
protected boolean |
upload(InputStream stream,
long srcBytes,
String remoteParent,
String remoteFile,
boolean isBinary,
String srcEncoding,
String hostEncoding,
IProgressMonitor monitor,
int sequenceState)
Copy a file from local to the remote file system. |
void |
upload(InputStream stream,
String remoteParent,
String remoteFile,
boolean isBinary,
String hostEncoding,
IProgressMonitor monitor)
|
void |
uploadMultiple(File[] localFiles,
String[] remoteParents,
String[] remoteFiles,
boolean[] isBinaries,
String[] srcEncodings,
String[] hostEncodings,
IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
public static final int KB_IN_BYTES
public static final int NUM_OF_KB
public static final int BUFFER_SIZE
Constructor Detail |
---|
public IFSFileService(IToolboxSessionProvider toolboxProvider)
Method Detail |
---|
public void copy(String srcParent, String srcName, String tgtParent, String tgtName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void copyBatch(String[] srcParents, String[] srcNames, String tgtParent, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public IHostFile createFile(String remoteParent, String fileName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public IHostFile createFolder(String remoteParent, String folderName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void delete(String remoteParent, String fileName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void download(String remoteParent, String remoteFile, File localFile, boolean isBinary, String hostEncoding, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public String getEncoding(IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public IHostFile getFile(String remoteParent, String name, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public InputStream getInputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public OutputStream getOutputStream(String remoteParent, String remoteFile, int options, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public IHostFile[] getRoots(IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public IHostFile getUserHome()
public boolean isCaseSensitive()
public void move(String srcParent, String srcName, String tgtParent, String tgtName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void rename(String remoteParent, String oldName, String newName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void rename(String remoteParent, String oldName, String newName, IHostFile oldFile, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void setLastModified(String parent, String name, long timestamp, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void setReadOnly(String parent, String name, boolean readOnly, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public boolean supportsEncodingConversion()
public void upload(InputStream stream, String remoteParent, String remoteFile, boolean isBinary, String hostEncoding, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
protected boolean upload(InputStream stream, long srcBytes, String remoteParent, String remoteFile, boolean isBinary, String srcEncoding, String hostEncoding, IProgressMonitor monitor, int sequenceState) throws SystemMessageException
localFile
- - a real file in the local file system.scrBytes
- - the total bytes of sourceremoteParent
- - a string designating the parent folder of the target for this file.remoteFile
- - a string designating the name of the file to be written on the remote system.isBinary
- - indicates whether the file is text or binarysrcEncoding
- - the src encoding of the file (if text)hostEncoding
- - the tgt encoding of the file (if text)monitor
- - the monitor for this potentially long running operationsequenceState
- - the state of sequence number in file content
SystemMessageException
- if an error occurs.
Typically this would be one of those in the
RemoteFileException
family.public void upload(File localFile, String remoteParent, String remoteFile, boolean isBinary, String srcEncoding, String hostEncoding, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void uploadMultiple(File[] localFiles, String[] remoteParents, String[] remoteFiles, boolean[] isBinaries, String[] srcEncodings, String[] hostEncodings, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public String getDescription()
public String getName()
public void initService(IProgressMonitor monitor)
public void uninitService(IProgressMonitor monitor)
protected IHostFile[] internalFetch(String parentPath, String fileFilter, int fileType, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
protected IHostFile[] convertToHostFiles(IFSFile[] list, int type) throws SystemMessageException
SystemMessageException
public boolean shouldStripSequenceNumber()
public void setSequenceNumberStrip(boolean shouldStrip)
stripSequenceNumber:
- true to strip the sequence number, false otherwise.public String getCurrentDirectory() throws SystemMessageException
SystemMessageException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |