Class GZIPWritableResource

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

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

  • Method Details

    • getOutputStream

      @Nullable public OutputStream getOutputStream(@Nonnull EAppend eAppend)
      Description copied from interface: IHasOutputStream
      Get the output stream to read from the object. Each time this method is call, a new OutputStream needs to be created!
      Parameters:
      eAppend - appending mode. May not be null.
      Returns:
      null if resolving failed.
    • getWritableCloneForPath

      @Nonnull public GZIPWritableResource getWritableCloneForPath(@Nonnull String sPath)
      Description copied from interface: IWritableResource
      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.