Examples of ReadObjectRequest


Examples of com.emc.atmos.api.request.ReadObjectRequest

     * @see com.emc.atmos.api.AtmosApi#readObject(com.emc.atmos.api.ObjectIdentifier, java.lang.Class)
     */
    @Override
    public <T> T readObject(ObjectIdentifier identifier, Class<T> objectType)
            throws IOException {
        return readObject( new ReadObjectRequest().identifier( identifier ), objectType ).getObject();
    }
View Full Code Here

Examples of com.emc.atmos.api.request.ReadObjectRequest

     * @see com.emc.atmos.api.AtmosApi#readObject(com.emc.atmos.api.ObjectIdentifier, com.emc.atmos.api.Range, java.lang.Class)
     */
    @Override
    public <T> T readObject(ObjectIdentifier identifier, Range range,
            Class<T> objectType) throws IOException {
        return readObject( new ReadObjectRequest().identifier( identifier ).ranges( range ), objectType ).getObject();
    }
View Full Code Here

Examples of com.emc.atmos.api.request.ReadObjectRequest

        // Partial reads not currently supported.
        if(range != null) {
            throw new UnsupportedOperationException(UNSUPPORTED_MSG);
        }
       
        ReadObjectRequest request = new ReadObjectRequest().identifier(identifier);
        try {
            return readObject(request, InputStream.class);
        } catch (IOException e) {
            throw new AtmosException("Error getting response stream: " + e, e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.