iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.core.resources
Class ISeriesMemberTransfer

java.lang.Object
  extended bycom.ibm.etools.iseries.core.resources.ISeriesMemberTransfer

public class ISeriesMemberTransfer
extends Object


Field Summary
static String Copyright
           
 
Constructor Summary
ISeriesMemberTransfer(ISeriesMember member, String localPath)
          Constructor with default encoding UTF-8.
ISeriesMemberTransfer(ISeriesMember member, String localPath, boolean bidiVisual)
          Constructor.
ISeriesMemberTransfer(ISeriesMember member, String localPath, String encoding)
          Constructor.
 
Method Summary
 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.
 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.
 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

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

ISeriesMemberTransfer

public ISeriesMemberTransfer(ISeriesMember member,
                             String localPath)
Constructor with default encoding UTF-8.

Parameters:
member - the member.
localPath - the local path to download to.

ISeriesMemberTransfer

public ISeriesMemberTransfer(ISeriesMember member,
                             String localPath,
                             String encoding)
Constructor.

Parameters:
member - the member.
localPath - the local path to download to.
encoding - the encoding of the local file.

ISeriesMemberTransfer

public ISeriesMemberTransfer(ISeriesMember member,
                             String localPath,
                             boolean bidiVisual)
Constructor.

Parameters:
member - the member.
localPath - the local path to download to.
bidiVisual -
Method Detail

setMember

public void setMember(ISeriesMember member)
Sets the member.

Parameters:
member - the member.

getMember

public ISeriesMember getMember()
Gets the member.

Returns:
the member.

setLocalPath

public void setLocalPath(String localPath)
Sets the local path where the member should be downloaded.

Parameters:
localPath - the local path.

getLocalPath

public String getLocalPath()
Gets the localPath where the member is to be downloaded.

Returns:
the local path.

setEncoding

public void setEncoding(String encoding)
Sets the local encoding to use.

Parameters:
encoding - the local encoding to use.

download

public void download()
              throws ISeriesEncapsulatedReturnCodeException,
                     ISeriesEncapsulatedException,
                     com.ibm.etools.systems.core.messages.SystemMessageException
Get the member from the server

Throws:
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException

download

public void download(boolean removeSequenceNumbers)
              throws ISeriesEncapsulatedReturnCodeException,
                     ISeriesEncapsulatedException,
                     com.ibm.etools.systems.core.messages.SystemMessageException
Get the member from the server

Throws:
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException

upload

public void upload()
            throws ISeriesEncapsulatedReturnCodeException,
                   ISeriesEncapsulatedException,
                   com.ibm.etools.systems.core.messages.SystemMessageException
Put the member back to the server

Throws:
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException

upload

public void upload(boolean insertSequenceNumbersIfRequired)
            throws ISeriesEncapsulatedReturnCodeException,
                   ISeriesEncapsulatedException,
                   com.ibm.etools.systems.core.messages.SystemMessageException
Put the member back to the server.

Parameters:
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.
Throws:
ISeriesEncapsulatedReturnCodeException
ISeriesEncapsulatedException
com.ibm.etools.systems.core.messages.SystemMessageException

iSeries Remote Systems
v6.0.0

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.