Package org.eclipse.ecf.filetransfer

Examples of org.eclipse.ecf.filetransfer.IRemoteFileAttributes


      assertNotNull(firstInfo.getName());
      assertTrue(firstInfo.getLastModified() > 0);
      trace("lastModified=" + new SimpleDateFormat().format(new Date(firstInfo.getLastModified())));
      trace("length=" + firstInfo.getLength());
      trace("isDirectory=" + firstInfo.isDirectory());
      final IRemoteFileAttributes attributes = firstInfo.getAttributes();
      assertNotNull(attributes);
      final Iterator attrNames = attributes.getAttributeKeys();
      for (; attrNames.hasNext();) {
        final String key = (String) attrNames.next();
        String s = "attrname=" + key;
        s += " attrvalue=" + attributes.getAttribute(key);
        trace(s);
      }
    }
  }
View Full Code Here


      // Now check out info
      assertNotNull(firstInfo.getName());
      assertEquals(0, firstInfo.getLastModified()); //TODO: should this be -1
      trace("length=" + firstInfo.getLength());
      trace("isDirectory=" + firstInfo.isDirectory());
      final IRemoteFileAttributes attributes = firstInfo.getAttributes();
      assertNotNull(attributes);
      final Iterator attrNames = attributes.getAttributeKeys();
      for (; attrNames.hasNext();) {
        final String key = (String) attrNames.next();
        String s = "attrname=" + key;
        s += " attrvalue=" + attributes.getAttribute(key);
        trace(s);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.filetransfer.IRemoteFileAttributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.