Class GZIPReadableResource

java.lang.Object
com.helger.io.resource.wrapped.AbstractWrappedReadableResource
com.helger.io.resource.wrapped.GZIPReadableResource
All Implemented Interfaces:
com.helger.base.io.iface.IHasInputStream, com.helger.base.io.iface.IHasInputStreamAndReader, IReadableResource, IResourceBase, IWrappedReadableResource

public class GZIPReadableResource extends AbstractWrappedReadableResource
A readable resource that is GZIP compressed.
Author:
Philip Helger
  • Constructor Details

    • GZIPReadableResource

      public GZIPReadableResource(@NonNull IReadableResource aBaseResource)
      Constructor.
      Parameters:
      aBaseResource - The base readable resource to wrap. May not be null.
  • Method Details

    • getInputStream

      public @Nullable InputStream getInputStream()
    • getReadableCloneForPath

      public @NonNull GZIPReadableResource getReadableCloneForPath(@NonNull String sPath)
      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.