public interface IFileDescriptorReader
FileDescriptors. Every file descriptor type (EFileTypes)
requires to have an equivalent file descriptor reader in order for being
usable by AWM or the API.
Cannot effectively be sub-classed by clients, since currently there's no way of extending AWM's list of supported file descriptor types or register new readers.
TaurusUtility.readFile(FileDescriptor, IExecutionContext)| Modifier and Type | Method and Description |
|---|---|
boolean |
fileExists(FileDescriptor pFileDescriptor,
IExecutionContext pContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Checks whether the file exists on the target system.
|
IGetDataResponse |
getContents(FileDescriptor pFileDescriptor,
IExecutionContext pContext)
Gets the contents of the target file.
|
void |
setContents(java.io.InputStream pInputStream,
FileDescriptor pFileDescriptor,
IExecutionContext pContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
Sets the contents of the target file.
|
IGetDataResponse getContents(FileDescriptor pFileDescriptor, IExecutionContext pContext) throws java.io.IOException
pFileDescriptor - the target file descriptorpContext - the execution contextjava.io.IOException - if reading the file failsvoid setContents(java.io.InputStream pInputStream,
FileDescriptor pFileDescriptor,
IExecutionContext pContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
pInputStream - the new file contentspFileDescriptor - the target file descriptorpContext - the execution contextpMon - progress monitorjava.io.IOException - if setting the file contents failsboolean fileExists(FileDescriptor pFileDescriptor, IExecutionContext pContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws java.io.IOException
pFileDescriptor - the file to checkpContext - the execution contextpMon - a progress monitortrue if the file exists, otherwise falsejava.io.IOException - if an error occurs while checking the file existenceCopyright © 2015 Micro Focus GmbH. All rights reserved.