Microsoft SDK for Java

SimpleTransferSession Class

The SimpleTransferSession Class of the com.ms.object package is a default implementation of the TransferSession interface.

public class SimpleTransferSession implements TransferSession
{
  // Constructors
  public SimpleTransferSession(MetaObject data, int available);
  public SimpleTransferSession(MetaObject data, int available, int preferred);

  // Methods
  public void deleteSource();
  public int getAvailableEffects();
  public int getPreferredEffects();
  public MetaObject getTransferData();
}

If you do not want to customize the behavior of a TransferSession but you want to source some data, the SimpleTransferSession class might be sufficient for your needs.

Be aware that this class does not support the Transfer.MOVE transfer effect because it requires an implementation of TransferSession.deleteSource (which the SimpleTransferSession class does not provide). To remedy this situation, you could extend the SimpleTransferSession class to gain the TransferSession implementation and then override the deleteSource method.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.