Package com.emc.object.s3.lfu
Interface LargeFileMultipartSource
-
- All Known Implementing Classes:
LargeFileMultipartFileSource
public interface LargeFileMultipartSource
Represents a source of object data that can be streamed in parallel parts of arbitrary ranges within the object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getCompleteDataStream()
Returns a stream that will provide all the object's datajava.io.InputStream
getPartDataStream(long offset, long length)
Returns an _independent_ stream that provides only the specified range within the object data.long
getTotalSize()
Returns the total size of the object data
-
-
-
Method Detail
-
getTotalSize
long getTotalSize()
Returns the total size of the object data
-
getCompleteDataStream
java.io.InputStream getCompleteDataStream() throws java.io.IOException
Returns a stream that will provide all the object's data- Throws:
java.io.IOException
-
getPartDataStream
java.io.InputStream getPartDataStream(long offset, long length) throws java.io.IOException
Returns an _independent_ stream that provides only the specified range within the object data. Note: this stream must be readable in parallel with streams of other parts/ranges.- Throws:
java.io.IOException
-
-