org.omnifaces.renderer
Class InlineStylesheetRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.omnifaces.renderer.InlineResourceRenderer
          extended by org.omnifaces.renderer.InlineStylesheetRenderer

public class InlineStylesheetRenderer
extends InlineResourceRenderer

This renderer enables rendering a CSS resource inline. This is internally only used by CombinedResourceHandler

Since:
1.2
Author:
Bauke Scholtz
See Also:
CombinedResourceHandler

Field Summary
static java.lang.String RENDERER_TYPE
          The standard renderer type.
 
Constructor Summary
InlineStylesheetRenderer()
           
 
Method Summary
 void endElement(javax.faces.context.ResponseWriter writer)
          End the element.
 void startElement(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component)
          Start the element.
 void writeResource(java.io.Reader reader, javax.faces.context.ResponseWriter writer)
          Write the resource inline.
 
Methods inherited from class org.omnifaces.renderer.InlineResourceRenderer
encodeChildren, getRendersChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, encodeEnd, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RENDERER_TYPE

public static final java.lang.String RENDERER_TYPE
The standard renderer type.

See Also:
Constant Field Values
Constructor Detail

InlineStylesheetRenderer

public InlineStylesheetRenderer()
Method Detail

startElement

public void startElement(javax.faces.context.ResponseWriter writer,
                         javax.faces.component.UIComponent component)
                  throws java.io.IOException
Description copied from class: InlineResourceRenderer
Start the element.

Specified by:
startElement in class InlineResourceRenderer
Parameters:
writer - The response writer.
component - The UIComponent to which this element corresponds.
Throws:
java.io.IOException - When an I/O error occurs.

writeResource

public void writeResource(java.io.Reader reader,
                          javax.faces.context.ResponseWriter writer)
                   throws java.io.IOException
Description copied from class: InlineResourceRenderer
Write the resource inline.

Specified by:
writeResource in class InlineResourceRenderer
Parameters:
reader - The reader providing the resource content.
writer - The response writer where the resource content has to be written to.
Throws:
java.io.IOException - When an I/O error occurs.

endElement

public void endElement(javax.faces.context.ResponseWriter writer)
                throws java.io.IOException
Description copied from class: InlineResourceRenderer
End the element.

Specified by:
endElement in class InlineResourceRenderer
Parameters:
writer - The response writer.
Throws:
java.io.IOException - When an I/O error occurs.