Sun StorageTek 5800 System Client API Reference Guide

retrieveObject

Writes all of the data for the specified object into the provided channel, returning the amount of data actually retrieved.

Synopsis

     public long retrieveObject(ObjectIdentifier oid,
         WritableByteChannel dataChannel)
         throws ArchiveException, java.io.IOException
     public long retrieveObject(ObjectIdentifier oid,
         java.nio.channels.WritableByteChannel 
         dataChannel,long firstByte,
         long lastByte)
         throws ArchiveException, java.io.IOException

Description

Takes an OID and downloads the data object into a supplied WritabableByteChannel.