Package com.helger.io.resource
Interface IWritableResource
- All Superinterfaces:
com.helger.base.io.iface.IHasOutputStream,com.helger.base.io.iface.IHasOutputStreamAndWriter,IResourceBase
- All Known Subinterfaces:
IReadWriteResource,IWrappedWritableResource
- All Known Implementing Classes:
AbstractWrappedWritableResource,FileSystemResource,GZIPWritableResource
@MustImplementEqualsAndHashcode
public interface IWritableResource
extends com.helger.base.io.iface.IHasOutputStreamAndWriter, IResourceBase
Base interface for an abstract writable resource.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescription@NonNull IWritableResourcegetWritableCloneForPath(@NonNull String sPath) Get a new resource of the same implementation type as this object but for a different path.Methods inherited from interface com.helger.base.io.iface.IHasOutputStream
getBufferedOutputStream, getOutputStream, isWriteMultipleMethods inherited from interface com.helger.base.io.iface.IHasOutputStreamAndWriter
getBufferedWriter, getWriterMethods inherited from interface com.helger.io.resource.IResourceBase
exists, getAsFile, getAsURL, getPath, getResourceID
-
Method Details
-
getWritableCloneForPath
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 benull.- Returns:
- The resource of the same implementation but a different path. May
not be
null.
-