public class RangeUtils extends Object
| Constructor and Description |
|---|
RangeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sendBytes(InputStream in,
OutputStream out,
long length) |
static String |
toRangeString(long start,
long finish,
Long totalLength) |
static void |
writeRange(InputStream in,
Range r,
OutputStream responseOut) |
static void |
writeRanges(InputStream in,
List<Range> ranges,
OutputStream responseOut) |
public static void writeRanges(InputStream in, List<Range> ranges, OutputStream responseOut) throws IOException
IOExceptionpublic static void sendBytes(InputStream in, OutputStream out, long length) throws IOException
IOExceptionpublic static void writeRange(InputStream in, Range r, OutputStream responseOut) throws IOException
IOException