Package io.milton.common
Class RangeUtils
java.lang.Object
io.milton.common.RangeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsendBytes(InputStream in, OutputStream out, long length) static StringtoRangeString(long start, long finish, Long totalLength) static voidwriteRange(InputStream in, Range r, OutputStream responseOut) static voidwriteRanges(InputStream in, List<Range> ranges, OutputStream responseOut)
-
Constructor Details
-
RangeUtils
public RangeUtils()
-
-
Method Details
-
toRangeString
-
writeRanges
public static void writeRanges(InputStream in, List<Range> ranges, OutputStream responseOut) throws IOException - Throws:
IOException
-
sendBytes
- Throws:
IOException
-
writeRange
- Throws:
IOException
-