0 Replies Latest reply: Jun 25, 2009 7:16 AM by 843851 RSS

    DSMCC Example

    843851
      I tried to work with DSMCC protocol. But I am unable to parse the DSMCCObject.


      the code is like this :
      public class DSMCCExample implements Xlet,AsynchronousLoadingEventListener
      {
      private void getResources() {
      try {
      dsmcc = new DSMCCObject(".");
      dsmcc.asynchronousLoad(this);
      } 
      catch (InvalidPathNameException e)
      {
      e.printStackTrace();
      }
      }
      
      public void receiveEvent(AsynchronousLoadingEvent e) {
      
      if (e instanceof SuccessEvent) 
      {
      DSMCCObject aFile=(DSMCCObject)e.getSource();
      ------
      ------
      ------
      ------
      }
      }
      }
      i tried to parse this aFile object to the file available in the current working directory.
      Can anyone help me out.
      Thanks in advance.