Interface IWrappedReadableResource
-
- All Superinterfaces:
IHasInputStream,IHasInputStreamAndReader,IReadableResource,IResourceBase
- All Known Implementing Classes:
AbstractWrappedReadableResource,GZIPReadableResource
public interface IWrappedReadableResource extends IReadableResource
Interface for readable resources that are "wrapped".- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IReadableResourcegetWrappedReadableResource()default booleanisReadMultiple()Check if theInputStreamfromIHasInputStream.getInputStream()andIHasInputStream.getBufferedInputStream()can be acquired more than once.-
Methods inherited from interface com.helger.commons.io.IHasInputStream
getBufferedInputStream, getInputStream
-
Methods inherited from interface com.helger.commons.io.IHasInputStreamAndReader
getBufferedReader, getReader
-
Methods inherited from interface com.helger.commons.io.resource.IReadableResource
getReadableCloneForPath
-
Methods inherited from interface com.helger.commons.io.resource.IResourceBase
exists, getAsFile, getAsURL, getPath, getResourceID
-
-
-
-
Method Detail
-
getWrappedReadableResource
@Nonnull IReadableResource getWrappedReadableResource()
- Returns:
- The wrapped resource. May not be
null.
-
isReadMultiple
default boolean isReadMultiple()
Description copied from interface:IHasInputStreamCheck if theInputStreamfromIHasInputStream.getInputStream()andIHasInputStream.getBufferedInputStream()can be acquired more than once.- Specified by:
isReadMultiplein interfaceIHasInputStream- Returns:
trueif the input stream can be acquired more than once,falseif not.
-
-