Package eu.mosaic.cloud.driver

Examples of eu.mosaic.cloud.driver.ObjectInfo


    for (S3ObjectSummary crtObject : objSummaries) {
      String fileName = crtObject.getKey();
      long fileSize = crtObject.getSize();
      Date lastModifDate = crtObject.getLastModified();

      ObjectInfo crtDsObj = new ObjectInfo(fileName, fileSize, lastModifDate);
      objects.add(crtDsObj);
    }

    return objects;
  }
View Full Code Here


  public void delete() {
    int selRow = table.getSelectedRow();
    try {
      List<ObjectInfo> objects = conn.getObjects(repositoryName);

      ObjectInfo selectedObject = (ObjectInfo) objects.toArray()[selRow];
      String objectName = selectedObject.getName();
      conn.delete(repositoryName, objectName);
      displayFiles(repositoryName);
    } catch (Exception e) {

    }
View Full Code Here

        int selRow = table.getSelectedRow();

        file = fileChooser.getSelectedFile();
        List<ObjectInfo> objects = conn.getObjects(repositoryName);

        ObjectInfo selectedObject = (ObjectInfo) objects.toArray()[selRow];
        String objectName = selectedObject.getName();

        in = conn.retrieve(this.repositoryName, objectName);

        DataInputStream dataIn = new DataInputStream(in);
        FileOutputStream fileOut = new FileOutputStream(file);
View Full Code Here

  }

  public Object getValueAt(int row, int col) {
    Object result = null;

    ObjectInfo crtObject = (ObjectInfo) objList.toArray()[row];
    switch (col) {
    case (0):
      result = crtObject.getName();
      break;
    case (1):
      result = crtObject.getSize();
      break;
    case (2):
      result = crtObject.getLastModif();
      break;
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of eu.mosaic.cloud.driver.ObjectInfo

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.