Interface IReadableResource

All Superinterfaces:
IHasInputStream, 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 IHasInputStreamAndReader, IResourceBase
Base interface for an abstract readable resource.
Author:
Philip Helger
  • Method Details

    • getReadableCloneForPath

      @Nonnull IReadableResource getReadableCloneForPath(@Nonnull String sPath)
      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 be null.
      Returns:
      The resource of the same implementation but a different path. May not be null.