|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PayloadSlicer
| Method Summary | |
|---|---|
Iterable<Payload> |
slice(Payload input,
long size)
Returns an Iterable of Payload instances that are no larger than
size bytes in length. |
Payload |
slice(Payload input,
long offset,
long length)
Returns a Payload 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 Detail |
|---|
Payload slice(Payload input,
long offset,
long length)
Payload 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.
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
IllegalArgumentException - if offset or length are negative
Iterable<Payload> slice(Payload input,
long size)
Iterable of Payload instances that are no larger than
size bytes in length.
input - the Payload to be slicedsize - the maximum size of each slice
Iterable of Payload instances
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||