Package com.cloud.bridge.util

Examples of com.cloud.bridge.util.FileRangeDataSource


  @Override
  public DataHandler loadObjectRange(String mountedRoot, String bucket, String fileName, long startPos, long endPos) {
    File file = new File(getBucketFolderDir(mountedRoot, bucket) + File.separatorChar + fileName);
    try {
      DataSource ds = new FileRangeDataSource(file, startPos, endPos);
      return new DataHandler(ds);
    } catch (MalformedURLException e) {
      throw new FileNotExistException("Unable to open underlying object file");
    } catch(IOException e) {
      throw new FileNotExistException("Unable to open underlying object file");
View Full Code Here

TOP

Related Classes of com.cloud.bridge.util.FileRangeDataSource

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.