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 Summary
Constructors Constructor Description GZIPWritableResource(IWritableResource aBaseResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamgetOutputStream(EAppend eAppend)Get the output stream to read from the object.GZIPWritableResourcegetWritableCloneForPath(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.AbstractWrappedWritableResource
exists, getAsFile, getAsURL, getPath, getResourceID, getWrappedWritableResource, 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.IHasOutputStream
getBufferedOutputStream
-
Methods inherited from interface com.helger.commons.io.IHasOutputStreamAndWriter
getBufferedWriter, getWriter
-
Methods inherited from interface com.helger.commons.io.resource.wrapped.IWrappedWritableResource
isWriteMultiple
-
-
-
-
Constructor Detail
-
GZIPWritableResource
public GZIPWritableResource(@Nonnull IWritableResource aBaseResource)
-
-
Method Detail
-
getOutputStream
@Nullable public OutputStream getOutputStream(@Nonnull EAppend eAppend)
Description copied from interface:IHasOutputStreamGet the output stream to read from the object. Each time this method is call, a newOutputStreamneeds to be created!- Parameters:
eAppend- appending mode. May not benull.- Returns:
nullif resolving failed.
-
getWritableCloneForPath
@Nonnull public GZIPWritableResource getWritableCloneForPath(@Nonnull String sPath)
Description copied from interface:IWritableResourceGet 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.
-
-