|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.resources.ISeriesMemberTransfer
Field Summary | |
---|---|
static String |
Copyright
|
static int |
EOR
|
Constructor Summary | |
---|---|
ISeriesMemberTransfer(ISeriesMember member,
String localPath)
Constructor with default encoding UTF-8. |
|
ISeriesMemberTransfer(ISeriesMember member,
String localPath,
boolean leaveVisual)
Constructor. |
|
ISeriesMemberTransfer(ISeriesMember member,
String localPath,
IProgressMonitor monitor)
Constructor with default encoding UTF-8, and prgress monitor to allow cancelling |
|
ISeriesMemberTransfer(ISeriesMember member,
String localPath,
String encoding)
Constructor. |
Method Summary | |
---|---|
void |
changeBidiFormat()
Converts the member from logical to visual or visual to logical as needed. |
void |
download()
Get the member from the server |
void |
download(boolean removeSequenceNumbers)
Get the member from the server |
String |
getLocalPath()
Gets the localPath where the member is to be downloaded. |
ISeriesMember |
getMember()
Gets the member. |
boolean |
isLogicalTransfer()
indicates whether a logical transfer is being used |
void |
setEncoding(String encoding)
Sets the local encoding to use. |
void |
setLocalPath(String localPath)
Sets the local path where the member should be downloaded. |
void |
setMember(ISeriesMember member)
Sets the member. |
static void |
setRecordFormat(com.ibm.as400.access.SequentialFile seqFile,
ISeriesMember member)
Set the record format for the sequential file before reading / writing. |
void |
setRecordFormat(Vector recordFormatPoints)
Set the record format to use during conversion. |
void |
setRemoveTrailingBlanks(boolean value)
Sets whether or not trailing blanks should be removed upon download. |
void |
upload()
Put the member back to the server |
void |
upload(boolean insertSequenceNumbersIfRequired)
Put the member back to the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
public static final int EOR
Constructor Detail |
public ISeriesMemberTransfer(ISeriesMember member, String localPath, IProgressMonitor monitor)
member
- the member.localPath
- the local path to download to.public ISeriesMemberTransfer(ISeriesMember member, String localPath)
member
- the member.localPath
- the local path to download to.public ISeriesMemberTransfer(ISeriesMember member, String localPath, String encoding)
member
- the member.localPath
- the local path to download to.encoding
- the encoding of the local file.public ISeriesMemberTransfer(ISeriesMember member, String localPath, boolean leaveVisual)
member
- the member.localPath
- the local path to download to.leaveVisual
- true if you want the file to be left in visual formatMethod Detail |
public void setMember(ISeriesMember member)
member
- the member.public ISeriesMember getMember()
public void setLocalPath(String localPath)
localPath
- the local path.public String getLocalPath()
public void setEncoding(String encoding)
encoding
- the local encoding to use.public void download() throws ISeriesEncapsulatedReturnCodeException, ISeriesEncapsulatedException, com.ibm.etools.systems.core.messages.SystemMessageException
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException
public void download(boolean removeSequenceNumbers) throws ISeriesEncapsulatedReturnCodeException, ISeriesEncapsulatedException, com.ibm.etools.systems.core.messages.SystemMessageException
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException
public void upload() throws ISeriesEncapsulatedReturnCodeException, ISeriesEncapsulatedException, com.ibm.etools.systems.core.messages.SystemMessageException
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException
public void upload(boolean insertSequenceNumbersIfRequired) throws ISeriesEncapsulatedReturnCodeException, ISeriesEncapsulatedException, com.ibm.etools.systems.core.messages.SystemMessageException
insertSequenceNumbersIfRequired
- insert sequence numbers if required.
Note that if this is true
, then we first do a check to determine if the first few records
of the member are missing sequence numbers. If so, then we check each line before adding sequence
numbers to it. Otherwise, we assume no line needs sequnce numbers. This is for efficiency.
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException
public void setRecordFormat(Vector recordFormatPoints)
Vector format = new Vector();
format.add(new Point(13, ISeriesMemberTransfer.EOR));
ISeriesMemberTransfer transfer = new ISeriesMemberTransfer(member, location);
transfer.setRecordFormat(format);
transfer.download();
NOTE:No error checking for overlapping or non ascending order of points will be performed. Also,
to indicate to-the-end-of the record, use ISeriesMemberTransfer.EOR
recordFormatPoints
- A vector of points to use when converting from visual to logical and logical to visualpublic static void setRecordFormat(com.ibm.as400.access.SequentialFile seqFile, ISeriesMember member) throws Exception
Exception
public boolean isLogicalTransfer()
public void changeBidiFormat() throws ISeriesEncapsulatedException
ISeriesEncapsulatedException
- thrown if an unexpected error is received from the file systempublic void setRemoveTrailingBlanks(boolean value)
value
- True if the trailing blanks should be stripped, false otherwise
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |