Package com.helger.io.resource
Interface IReadableResource
- All Superinterfaces:
com.helger.base.io.iface.IHasInputStream,com.helger.base.io.iface.IHasInputStreamAndReader,IResourceBase
- All Known Subinterfaces:
IMemoryReadableResource,IReadWriteResource,IWrappedReadableResource
- All Known Implementing Classes:
AbstractMemoryReadableResource,AbstractWrappedReadableResource,ClassPathResource,FileSystemResource,GZIPReadableResource,ReadableResourceByteArray,ReadableResourceInputStream,ReadableResourceString,URLResource
@MustImplementEqualsAndHashcode
public interface IReadableResource
extends com.helger.base.io.iface.IHasInputStreamAndReader, IResourceBase
Base interface for an abstract readable resource.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescription@NonNull IReadableResourcegetReadableCloneForPath(@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.IHasInputStream
getBufferedInputStream, getInputStream, isReadMultiple, withBufferedInputStreamDo, withInputStreamDoMethods inherited from interface com.helger.base.io.iface.IHasInputStreamAndReader
getBufferedReader, getReaderMethods inherited from interface com.helger.io.resource.IResourceBase
exists, getAsFile, getAsURL, getPath, getResourceID
-
Method Details
-
getReadableCloneForPath
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.
-