public class InputStreamFileDescriptorReader extends java.lang.Object implements IFileDescriptorReader
IFileDescriptorReader implementation for file descriptors of the type
EFileTypes.INPUT_STREAM.| Constructor and Description |
|---|
InputStreamFileDescriptorReader() |
| 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)
The content of the input stream is get with the code page "UTF-8"
|
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
getContents 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.