Interface IWrappedWritableResource
-
- All Superinterfaces:
IHasOutputStream,IHasOutputStreamAndWriter,IResourceBase,IWritableResource
- All Known Implementing Classes:
AbstractWrappedWritableResource,GZIPWritableResource
public interface IWrappedWritableResource extends IWritableResource
Interface for writable resources that are "wrapped".- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IWritableResourcegetWrappedWritableResource()default booleanisWriteMultiple()Check if theOutputStreamfromIHasOutputStream.getOutputStream(EAppend)orIHasOutputStream.getBufferedOutputStream(EAppend)can be acquired more than once or not.-
Methods inherited from interface com.helger.commons.io.IHasOutputStream
getBufferedOutputStream, getOutputStream
-
Methods inherited from interface com.helger.commons.io.IHasOutputStreamAndWriter
getBufferedWriter, getWriter
-
Methods inherited from interface com.helger.commons.io.resource.IResourceBase
exists, getAsFile, getAsURL, getPath, getResourceID
-
Methods inherited from interface com.helger.commons.io.resource.IWritableResource
getWritableCloneForPath
-
-
-
-
Method Detail
-
getWrappedWritableResource
@Nonnull IWritableResource getWrappedWritableResource()
- Returns:
- The wrapped resource. May not be
null.
-
isWriteMultiple
default boolean isWriteMultiple()
Description copied from interface:IHasOutputStreamCheck if theOutputStreamfromIHasOutputStream.getOutputStream(EAppend)orIHasOutputStream.getBufferedOutputStream(EAppend)can be acquired more than once or not.- Specified by:
isWriteMultiplein interfaceIHasOutputStream- Returns:
trueif the output stream can be acquired more than once,falseif not.
-
-