public class LocalFileDescriptorReader extends java.lang.Object implements IFileDescriptorReader
IFileDescriptorReader for FileDescriptors of the type
EFileTypes.LOCAL_FILE.
Copyright (C) Micro Focus| Constructor and Description |
|---|
LocalFileDescriptorReader() |
| 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.
|
public IGetDataResponse getContents(FileDescriptor pFileDescriptor, IExecutionContext pContext) throws java.io.IOException
IFileDescriptorReadergetContents in interface IFileDescriptorReaderpFileDescriptor - the target file descriptorpContext - the execution contextjava.io.IOException - if reading the file failspublic void setContents(java.io.InputStream pInputStream,
FileDescriptor pFileDescriptor,
IExecutionContext pContext,
org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
IFileDescriptorReadersetContents in interface IFileDescriptorReaderpInputStream - the new file contentspFileDescriptor - the target file descriptorpContext - the execution contextpMon - progress monitorjava.io.IOException - if setting the file contents failspublic boolean fileExists(FileDescriptor pFileDescriptor, IExecutionContext pContext, org.eclipse.core.runtime.IProgressMonitor pMon) throws java.io.IOException
IFileDescriptorReaderfileExists in interface IFileDescriptorReaderpFileDescriptor - 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.