Class AbstractWrappedWritableResource
java.lang.Object
com.helger.commons.io.resource.wrapped.AbstractWrappedWritableResource
- All Implemented Interfaces:
IHasOutputStream,IHasOutputStreamAndWriter,IResourceBase,IWritableResource,IWrappedWritableResource
- Direct Known Subclasses:
GZIPWritableResource
public abstract class AbstractWrappedWritableResource
extends Object
implements IWrappedWritableResource
A wrapper around a writable resource for
OutputStream manipulation .- Author:
- Philip Helger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWrappedWritableResource(IWritableResource aBaseResource) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.io.IHasOutputStream
getBufferedOutputStream, getOutputStreamMethods inherited from interface com.helger.commons.io.IHasOutputStreamAndWriter
getBufferedWriter, getWriterMethods inherited from interface com.helger.commons.io.resource.wrapped.IWrappedWritableResource
isWriteMultipleMethods inherited from interface com.helger.commons.io.resource.IWritableResource
getWritableCloneForPath
-
Constructor Details
-
AbstractWrappedWritableResource
-
-
Method Details
-
getWrappedWritableResource
- Specified by:
getWrappedWritableResourcein interfaceIWrappedWritableResource- Returns:
- The wrapped resource. May not be
null.
-
getResourceID
- Specified by:
getResourceIDin interfaceIResourceBase- Returns:
- A non-
nullresource ID used e.g. for system IDs in XML resolving.
-
getPath
- Specified by:
getPathin interfaceIResourceBase- Returns:
- The requested path. Never
null
-
exists
public boolean exists()- Specified by:
existsin interfaceIResourceBase- Returns:
trueif the resource exists,falseotherwise.
-
getAsURL
- Specified by:
getAsURLin interfaceIResourceBase- Returns:
- the URL representation of this resource. May be
nullif this resource cannot be represented as an URL.
-
getAsFile
- Specified by:
getAsFilein interfaceIResourceBase- Returns:
- the File representation of this resource. May be
nullif this resource cannot be represented as a file.
-
toString
-