Class GZIPWritableResource

java.lang.Object
com.helger.io.resource.wrapped.AbstractWrappedWritableResource
com.helger.io.resource.wrapped.GZIPWritableResource
All Implemented Interfaces:
com.helger.base.io.iface.IHasOutputStream, com.helger.base.io.iface.IHasOutputStreamAndWriter, IResourceBase, IWritableResource, IWrappedWritableResource

public class GZIPWritableResource extends AbstractWrappedWritableResource
A writable resource that is GZIP compressed.
Author:
Philip Helger
  • Constructor Details

    • GZIPWritableResource

      public GZIPWritableResource(@NonNull IWritableResource aBaseResource)
      Constructor.
      Parameters:
      aBaseResource - The base writable resource to wrap. May not be null.
  • Method Details

    • getOutputStream

      public @Nullable OutputStream getOutputStream(@NonNull com.helger.base.io.EAppend eAppend)
    • getWritableCloneForPath

      public @NonNull GZIPWritableResource getWritableCloneForPath(@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.