|
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 com.ibm.etools.iseries.rse.ui.resources.CachedQSYSRemoteMember
public class CachedQSYSRemoteMember
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
CachedQSYSRemoteMember(IQSYSMember member)
|
Method Summary | |
---|---|
static IQSYSMember |
createTempMember(Shell shell,
IBMiConnection connection,
String libName,
String fileName,
String mbrName,
String[] contents)
Create a temporary source member and populate it with the given contents. |
static IQSYSMember |
createTempMember(Shell shell,
IBMiConnection connection,
String libName,
String fileName,
String mbrName,
String mbrType,
String[] contents)
Create a temporary source member and populate it with the given contents. |
boolean |
download(IProgressMonitor monitor,
boolean leaveVisual,
boolean force)
Download the member. |
boolean |
download(IProgressMonitor monitor,
boolean leaveVisual,
boolean force,
boolean doRefresh)
Download the member. |
QSYSEditableRemoteSourceFileMember |
getAccess()
Return an instance of QSYSEditableRemoteSourceFileMember for this member, which has a number of useful methods, beyond just opening the member for edit. |
IFile |
getCachedCopy()
Return the cached copy of the IQSYSMember member. |
ISequentialFileReader |
getContentsLineByLine()
Return the contents of the files once it is downloaded, one line at a time. |
ISequentialFileReader |
getContentsLineByLine(boolean transientDownload,
boolean bidiVisual)
Return a reader to access the contents of the member line by line. |
String |
getDownloadPath()
retrieves the path being used for downloading |
IFile |
getLocalResource()
|
String |
getRemotePath()
Retrieves the remote path of the member on the iSeries |
void |
refresh()
Refresh the remote edit project. |
void |
setRemoveTrailingBlanks(boolean value)
Sets whether or not trailing blanks should be removed upon download. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
Constructor Detail |
---|
public CachedQSYSRemoteMember(IQSYSMember member)
Method Detail |
---|
public IFile getCachedCopy() throws SystemMessageException
SystemMessageException
public QSYSEditableRemoteSourceFileMember getAccess() throws SystemMessageException
SystemMessageException
public ISequentialFileReader getContentsLineByLine() throws Exception
Exception
IISeriesMember.getContentsLineByLine()
public ISequentialFileReader getContentsLineByLine(boolean transientDownload, boolean bidiVisual) throws Exception
transientDownload
- Specifies if the temporary copy of the member downloaded for
the reader is deleted after the reader completes.bidiVisual
- If the file contains BIDI text then the text is returned in
visual format. If bidiVisual is true then transientDownload is ignored and assumed
to be true. This is because the local copy cannot be added to the workspace if
it is BIDI and in visual ordering.
Note: transientDownload determines whether caching occurs, irrespective of the sense of bidiVisual.
See ISeriesSrcPhysicalFileMemberTransientReader() for transientDownload usage there.
Exception
public String getDownloadPath()
public IFile getLocalResource()
public String getRemotePath()
public boolean download(IProgressMonitor monitor, boolean leaveVisual, boolean force) throws Exception
monitor
- the progress monitor to show during the download. Can be null.force
- force a refresh of the RSE temp files project
Exception
public boolean download(IProgressMonitor monitor, boolean leaveVisual, boolean force, boolean doRefresh) throws Exception
monitor
- the progress monitor to show during the download. Can be null.force
- force a refresh of the RSE temp files project
Exception
public void setRemoveTrailingBlanks(boolean value)
value
- True if the trailing blanks should be stripped, false otherwisepublic void refresh()
public static IQSYSMember createTempMember(Shell shell, IBMiConnection connection, String libName, String fileName, String mbrName, String mbrType, String[] contents) throws SystemMessageException
SystemMessageException
- if an error occurs while performing any operation. Wraps the remote system messagepublic static IQSYSMember createTempMember(Shell shell, IBMiConnection connection, String libName, String fileName, String mbrName, String[] contents) throws SystemMessageException
SystemMessageException
- if an error occurs while performing any operation. Wraps the remote system message
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |