Interface RangeAwareResource
-
- All Superinterfaces:
org.springframework.core.io.InputStreamSource
,org.springframework.core.io.Resource
- All Known Implementing Classes:
BoxResource
,RangeAwareUrlResource
,S3Resource
,WebDavResource
public interface RangeAwareResource extends org.springframework.core.io.Resource
Extension of Spring'sResource
that provides random access to the content.- Author:
- avasquez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getInputStream(long start, long end)
Returns a range of bytes from the resource's content.
-
-
-
Method Detail
-
getInputStream
InputStream getInputStream(long start, long end) throws IOException
Returns a range of bytes from the resource's content.- Parameters:
start
- the start of the rangeend
- the end of the range- Returns:
- an input stream with the content range
- Throws:
IOException
- if an IO error occurs
-
-