public abstract class AbstractResourceStream extends Object implements IResourceStream
IResourceStream
,
Serialized FormConstructor and Description |
---|
AbstractResourceStream() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Gets the mime type of this resource
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getInputStream
public Locale getLocale()
getLocale
in interface IResourceStream
public void setLocale(Locale locale)
IResourceStream
setLocale
in interface IResourceStream
locale
- The Locale where this stream did resolve to.public String getStyle()
getStyle
in interface IResourceStream
public String getVariation()
getVariation
in interface IResourceStream
public void setStyle(String style)
IResourceStream
setStyle
in interface IResourceStream
style
- The style where this stream did resolve to.public void setVariation(String variation)
IResourceStream
setVariation
in interface IResourceStream
variation
- The Variation where this stream did resolve to.public Bytes length()
IResourceStream
length
in interface IResourceStream
null
if unknownpublic String getContentType()
IResourceStream
getContentType
in interface IResourceStream
public Time lastModifiedTime()
IModifiable
lastModifiedTime
in interface IModifiable
Time
or
null
if that information is not availableCopyright © 2006–2022 Apache Software Foundation. All rights reserved.