Package io.fathom.cloud.storage.api.os.models

Examples of io.fathom.cloud.storage.api.os.models.CloudObject


            md5.setState(file.getHashResume(), file.getLength());
            md5.update(blob.data);
        } else {
            BlobStore blobStore = getBlobStore(project);

            CloudObject cloudObject = new CloudObject(oldFileData);
            try (InputStream is = cloudObject.getInputStream(blobStore)) {
                md5.update(is);
            }
            md5.update(blob.data);
        }
View Full Code Here


    @Override
    public StreamingOutput open(FsFile file, Long from, Long to) {
        // TODO: This can be made much more efficient

        CloudObject object = new CloudObject(file.getData());

        final InputStream is;
        try {
            BlobStore blobStore = getBlobStore(file.getProject());
            is = object.getInputStream(blobStore, from, to);
        } catch (IOException e) {
            throw new IllegalStateException("Error opening file", e);
        }

        StreamingOutput stream = new StreamingOutput() {
View Full Code Here

        FsFile fsFile = findFileInfo(fsBucket, name);
        if (fsFile == null) {
            return null;
        }

        CloudObject object = new CloudObject(fsFile.getData());

        BlobStore blobStore = getBlobStore(project);
        return object.asByteSource(blobStore, from, to);
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.storage.api.os.models.CloudObject

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.