Package com.emc.object.s3.lfu
Class LargeFileMultipartFileSource
- java.lang.Object
-
- com.emc.object.s3.lfu.LargeFileMultipartFileSource
-
- All Implemented Interfaces:
LargeFileMultipartSource
public class LargeFileMultipartFileSource extends java.lang.Object implements LargeFileMultipartSource
-
-
Constructor Summary
Constructors Constructor Description LargeFileMultipartFileSource(java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete 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
public long getTotalSize()
Description copied from interface:LargeFileMultipartSource
Returns the total size of the object data- Specified by:
getTotalSize
in interfaceLargeFileMultipartSource
-
getCompleteDataStream
public java.io.InputStream getCompleteDataStream() throws java.io.IOException
Description copied from interface:LargeFileMultipartSource
Returns a stream that will provide all the object's data- Specified by:
getCompleteDataStream
in interfaceLargeFileMultipartSource
- Throws:
java.io.IOException
-
getPartDataStream
public java.io.InputStream getPartDataStream(long offset, long length) throws java.io.IOException
Description copied from interface:LargeFileMultipartSource
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.- Specified by:
getPartDataStream
in interfaceLargeFileMultipartSource
- Throws:
java.io.IOException
-
-