public abstract class InlineResourceRenderer extends Renderer
CombinedResourceHandler
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
InlineResourceRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(FacesContext context,
UIComponent component)
Obtain the resource, construct a
Reader around it using the character encoding as obtained from the
response writer and then invoke startElement(ResponseWriter, UIComponent) ,
writeResource(Reader, ResponseWriter) and endElement(ResponseWriter) in sequence. |
abstract void |
endElement(ResponseWriter writer)
End the element.
|
boolean |
getRendersChildren()
Returns
true . |
abstract void |
startElement(ResponseWriter writer,
UIComponent component)
Start the element.
|
abstract void |
writeResource(Reader reader,
ResponseWriter writer)
Write the resource inline.
|
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
public boolean getRendersChildren()
true
.getRendersChildren
in class Renderer
public void encodeChildren(FacesContext context, UIComponent component) throws IOException
Reader
around it using the character encoding as obtained from the
response writer and then invoke startElement(ResponseWriter, UIComponent)
,
writeResource(Reader, ResponseWriter)
and endElement(ResponseWriter)
in sequence.encodeChildren
in class Renderer
IOException
public abstract void startElement(ResponseWriter writer, UIComponent component) throws IOException
writer
- The response writer.component
- The UIComponent
to which this element corresponds.IOException
- When an I/O error occurs.public abstract void writeResource(Reader reader, ResponseWriter writer) throws IOException
reader
- The reader providing the resource content.writer
- The response writer where the resource content has to be written to.IOException
- When an I/O error occurs.public abstract void endElement(ResponseWriter writer) throws IOException
writer
- The response writer.IOException
- When an I/O error occurs.Copyright © 2012–2015 OmniFaces. All rights reserved.