org.skyscreamer.yoga.demo.util
Class GzippedResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.AbstractFileResolvingResource
org.springframework.core.io.UrlResource
org.skyscreamer.yoga.demo.util.GzippedResource
- All Implemented Interfaces:
- org.springframework.core.io.InputStreamSource, org.springframework.core.io.Resource
public class GzippedResource
- extends org.springframework.core.io.UrlResource
Wraps a gzipped Resource so that it decompresses on the fly.
- Author:
- Carter Page
| Methods inherited from class org.springframework.core.io.UrlResource |
createRelative, equals, getDescription, getFile, getFilename, getURI, getURL, hashCode |
| Methods inherited from class org.springframework.core.io.AbstractFileResolvingResource |
getFile, getFileForLastModifiedCheck |
| Methods inherited from class org.springframework.core.io.AbstractResource |
exists, isOpen, isReadable, lastModified, toString |
GzippedResource
public GzippedResource(String path)
throws MalformedURLException
- Throws:
MalformedURLException
GzippedResource
public GzippedResource(URI uri)
throws MalformedURLException
- Throws:
MalformedURLException
GzippedResource
public GzippedResource(URL url)
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface org.springframework.core.io.InputStreamSource- Overrides:
getInputStream in class org.springframework.core.io.UrlResource
- Throws:
IOException
Copyright © 2013. All Rights Reserved.