public class RangeAwareUrlResource extends org.springframework.core.io.UrlResource implements RangeAwareResource
UrlResource extension that implements RangeAwareResource in order to provide
random access to content (range content queries).| Constructor and Description |
|---|
RangeAwareUrlResource(String path) |
RangeAwareUrlResource(String protocol,
String location) |
RangeAwareUrlResource(String protocol,
String location,
String fragment) |
RangeAwareUrlResource(URI uri) |
RangeAwareUrlResource(URL url) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream(long start,
long end)
Returns a range of bytes from the resource's content.
|
createRelative, equals, getDescription, getFile, getFilename, getInputStream, getURI, getURL, hashCodecontentLength, customizeConnection, customizeConnection, exists, getFile, getFileForLastModifiedCheck, isReadable, lastModifiedclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic RangeAwareUrlResource(URI uri) throws MalformedURLException
MalformedURLExceptionpublic RangeAwareUrlResource(URL url)
public RangeAwareUrlResource(String path) throws MalformedURLException
MalformedURLExceptionpublic RangeAwareUrlResource(String protocol, String location) throws MalformedURLException
MalformedURLExceptionpublic RangeAwareUrlResource(String protocol, String location, String fragment) throws MalformedURLException
MalformedURLExceptionpublic InputStream getInputStream(long start, long end) throws IOException
RangeAwareResourcegetInputStream in interface RangeAwareResourcestart - the start of the rangeend - the end of the rangeIOException - if an IO error occursCopyright © 2020 CrafterCMS. All rights reserved.