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 Details

  • Method Details

    • getInputStream

      @Nullable public InputStream getInputStream()
      Description copied from interface: IHasInputStream
      Get the input stream to read from the object. Each time this method is called, a new InputStream needs to be created.
      Returns:
      null if resolving failed.
    • getReadableCloneForPath

      @Nonnull public GZIPReadableResource getReadableCloneForPath(@Nonnull String sPath)
      Description copied from interface: IReadableResource
      Get 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 be null.
      Returns:
      The resource of the same implementation but a different path. May not be null.