Bug 179850 - [api] Introduce methods to get input stream and output stream in IRemoteFileSubSystem
Summary: [api] Introduce methods to get input stream and output stream in IRemoteFileS...
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Kushal Munir CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2007-03-28 16:56 EDT by Kushal Munir CLA
Modified: 2008-08-13 13:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kushal Munir CLA 2007-03-28 16:56:24 EDT
Two new methods have been added to IRemoteFileSubSystem to get the input stream for a remote file and the output stream to a remote destination:

public InputStream getInputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException

public OutputStream getOutputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException

The FileServiceSubsystem implementation simply forwards to the IFileService associated with it. The RemoteFileSubSystem class returns null by default.

Subclasses can override as necessary.
Comment 1 Kushal Munir CLA 2007-03-28 16:59:44 EDT
Complete.
Comment 2 Kushal Munir CLA 2007-03-29 11:45:32 EDT
Took out the default RemoteFileSubSystem implementations and added javadoc to IRemoteFileSubSystem to make clear that implementors must not return null.
Comment 3 Martin Oberhuber CLA 2008-08-13 13:17:33 EDT
[target cleanup] 2.0 M6 was the original target milestone for this bug