Writes all of the data for the specified object into the provided channel, returning the amount of data actually retrieved.
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
Takes an OID and downloads the data object into a supplied WritabableByteChannel.