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
public class GZIPReadableResource extends AbstractWrappedReadableResource
A readable resource that is GZIP compressed.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description GZIPReadableResource(IReadableResource aBaseResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()Get the input stream to read from the object.GZIPReadableResourcegetReadableCloneForPath(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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.io.IHasInputStream
getBufferedInputStream
-
Methods inherited from interface com.helger.commons.io.IHasInputStreamAndReader
getBufferedReader, getReader
-
Methods inherited from interface com.helger.commons.io.resource.wrapped.IWrappedReadableResource
isReadMultiple
-
-
-
-
Constructor Detail
-
GZIPReadableResource
public GZIPReadableResource(@Nonnull IReadableResource aBaseResource)
-
-
Method Detail
-
getInputStream
@Nullable public InputStream 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
@Nonnull public GZIPReadableResource getReadableCloneForPath(@Nonnull String sPath)
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.
-
-