Class AbstractWrappedReadableResource
java.lang.Object
com.helger.commons.io.resource.wrapped.AbstractWrappedReadableResource
- All Implemented Interfaces:
IHasInputStream,IHasInputStreamAndReader,IReadableResource,IResourceBase,IWrappedReadableResource
- Direct Known Subclasses:
GZIPReadableResource
public abstract class AbstractWrappedReadableResource
extends Object
implements IWrappedReadableResource
A wrapper around a readable resource for
InputStream manipulation .- Author:
- Philip Helger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWrappedReadableResource(IReadableResource aBaseResource) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.io.IHasInputStream
getBufferedInputStream, getInputStream, withBufferedInputStreamDo, withInputStreamDoMethods inherited from interface com.helger.commons.io.IHasInputStreamAndReader
getBufferedReader, getReaderMethods inherited from interface com.helger.commons.io.resource.IReadableResource
getReadableCloneForPathMethods inherited from interface com.helger.commons.io.resource.wrapped.IWrappedReadableResource
isReadMultiple
-
Constructor Details
-
AbstractWrappedReadableResource
-
-
Method Details
-
getWrappedReadableResource
- Specified by:
getWrappedReadableResourcein interfaceIWrappedReadableResource- Returns:
- The wrapped resource. May not be
null.
-
getResourceID
- Specified by:
getResourceIDin interfaceIResourceBase- Returns:
- A non-
nullresource ID used e.g. for system IDs in XML resolving.
-
getPath
- Specified by:
getPathin interfaceIResourceBase- Returns:
- The requested path. Never
null
-
exists
public boolean exists()- Specified by:
existsin interfaceIResourceBase- Returns:
trueif the resource exists,falseotherwise.
-
getAsURL
- Specified by:
getAsURLin interfaceIResourceBase- Returns:
- the URL representation of this resource. May be
nullif this resource cannot be represented as an URL.
-
getAsFile
- Specified by:
getAsFilein interfaceIResourceBase- Returns:
- the File representation of this resource. May be
nullif this resource cannot be represented as a file.
-
toString
-