Class GZIPReadableResource
java.lang.Object
com.helger.commons.io.resource.wrapped.AbstractWrappedReadableResource
com.helger.commons.io.resource.wrapped.GZIPReadableResource
- All Implemented Interfaces:
IHasInputStream,IHasInputStreamAndReader,IReadableResource,IResourceBase,IWrappedReadableResource
A readable resource that is GZIP compressed.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the input stream to read from the object.getReadableCloneForPath(String sPath) Get a new resource of the same implementation type as this object but for a different path.Methods inherited from class com.helger.commons.io.resource.wrapped.AbstractWrappedReadableResource
exists, getAsFile, getAsURL, getPath, getResourceID, getWrappedReadableResource, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.io.IHasInputStream
getBufferedInputStream, withBufferedInputStreamDo, withInputStreamDoMethods inherited from interface com.helger.commons.io.IHasInputStreamAndReader
getBufferedReader, getReaderMethods inherited from interface com.helger.commons.io.resource.wrapped.IWrappedReadableResource
isReadMultiple
-
Constructor Details
-
GZIPReadableResource
-
-
Method Details
-
getInputStream
Description copied from interface:IHasInputStreamGet the input stream to read from the object. Each time this method is called, a newInputStreamneeds to be created.- Returns:
nullif resolving failed.
-
getReadableCloneForPath
Description copied from interface:IReadableResourceGet a new resource of the same implementation type as this object but for a different path.- Parameters:
sPath- The new path to use. May not benull.- Returns:
- The resource of the same implementation but a different path. May
not be
null.
-