public class ResourceStreamWrapper extends Object implements IResourceStream
| Constructor and Description |
|---|
ResourceStreamWrapper(IResourceStream delegate)
Creates the wrapper around the
delegate resource stream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the resource.
|
String |
getContentType()
Gets the mime type of this resource
|
IResourceStream |
getDelegate()
Returns the wrapped delegate.
|
InputStream |
getInputStream()
Gets the resource stream.
|
Locale |
getLocale() |
String |
getStyle() |
String |
getVariation() |
Time |
lastModifiedTime()
Gets the last time this modifiable thing changed.
|
Bytes |
length()
Gets the size of this resource
|
void |
setLocale(Locale locale)
This method shouldn't be used from the outside.
|
void |
setStyle(String style)
This method shouldn't be used from the outside.
|
void |
setVariation(String variation)
This method shouldn't be used from the outside.
|
public ResourceStreamWrapper(IResourceStream delegate)
delegate resource stream.delegate - public IResourceStream getDelegate()
public String getContentType()
IResourceStreamgetContentType in interface IResourceStreampublic Bytes length()
IResourceStreamlength in interface IResourceStreamnull if unknownpublic InputStream getInputStream() throws ResourceStreamNotFoundException
IResourceStreamgetInputStream in interface IResourceStreamResourceStreamNotFoundExceptionIResourceStream.close()public void close()
throws IOException
IResourceStreamclose in interface Closeableclose in interface AutoCloseableclose in interface IResourceStreamIOExceptionpublic Locale getLocale()
getLocale in interface IResourceStreampublic void setLocale(Locale locale)
IResourceStreamsetLocale in interface IResourceStreamlocale - The Locale where this stream did resolve to.public String getStyle()
getStyle in interface IResourceStreampublic void setStyle(String style)
IResourceStreamsetStyle in interface IResourceStreamstyle - The style where this stream did resolve to.public String getVariation()
getVariation in interface IResourceStreampublic void setVariation(String variation)
IResourceStreamsetVariation in interface IResourceStreamvariation - The Variation where this stream did resolve to.public Time lastModifiedTime()
IModifiablelastModifiedTime in interface IModifiableTime or
null if that information is not availableCopyright © 2006–2020 Apache Software Foundation. All rights reserved.