Package io.milton.common
Class RangeUtils
- java.lang.Object
-
- io.milton.common.RangeUtils
-
public class RangeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description RangeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
writeRanges
public static void writeRanges(InputStream in, List<Range> ranges, OutputStream responseOut) throws IOException
- Throws:
IOException
-
sendBytes
public static void sendBytes(InputStream in, OutputStream out, long length) throws IOException
- Throws:
IOException
-
writeRange
public static void writeRange(InputStream in, Range r, OutputStream responseOut) throws IOException
- Throws:
IOException
-
-