Package org.jclouds.io
Interface PayloadSlicer
- All Known Implementing Classes:
BasePayloadSlicer
public interface PayloadSlicer
-
Method Summary
Modifier and TypeMethodDescriptionReturns aPayload
that returns input streams from the an underlying payload, where each stream starts at the given offset and is limited to the specified number of bytes.
-
Method Details
-
slice
Returns aPayload
that returns input streams from the an underlying payload, where each stream starts at the given offset and is limited to the specified number of bytes.- Parameters:
input
- the payload from which to get the raw streamsoffset
- the offset in bytes into the underlying stream where the returned streams will startlength
- the maximum length of the returned streams- Throws:
IllegalArgumentException
- if offset or length are negative
-
slice
-