Class MoveScriptsToBottomResponseWriter
- java.lang.Object
-
- java.io.Writer
-
- javax.faces.context.ResponseWriter
-
- javax.faces.context.ResponseWriterWrapper
-
- org.primefaces.application.resource.MoveScriptsToBottomResponseWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable,javax.faces.FacesWrapper<javax.faces.context.ResponseWriter>
public class MoveScriptsToBottomResponseWriter extends javax.faces.context.ResponseWriterWrapper
-
-
Constructor Summary
Constructors Constructor Description MoveScriptsToBottomResponseWriter(javax.faces.context.ResponseWriter wrapped, MoveScriptsToBottomState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.faces.context.ResponseWritercloneWithWriter(Writer writer)voidendElement(String name)javax.faces.context.ResponseWritergetWrapped()protected StringmergeAndMinimizeInlineScripts(String id, String type, List<String> inlines)voidstartElement(String name, javax.faces.component.UIComponent component)protected voidupdateScriptSrcOrType(String name, String value)voidwrite(char[] cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwriteAttribute(String name, Object value, String property)voidwriteText(char[] cbuf, int off, int len)voidwriteText(Object text, String property)voidwriteText(Object text, javax.faces.component.UIComponent component, String property)voidwriteURIAttribute(String name, Object value, String property)
-
-
-
Constructor Detail
-
MoveScriptsToBottomResponseWriter
public MoveScriptsToBottomResponseWriter(javax.faces.context.ResponseWriter wrapped, MoveScriptsToBottomState state)
-
-
Method Detail
-
getWrapped
public javax.faces.context.ResponseWriter getWrapped()
- Specified by:
getWrappedin interfacejavax.faces.FacesWrapper<javax.faces.context.ResponseWriter>- Overrides:
getWrappedin classjavax.faces.context.ResponseWriterWrapper
-
write
public void write(int c) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(char[] cbuf) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Overrides:
writein classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
write
public void write(String str) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
writeText
public void writeText(char[] cbuf, int off, int len) throws IOException- Overrides:
writeTextin classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
writeText
public void writeText(Object text, String property) throws IOException
- Overrides:
writeTextin classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
writeText
public void writeText(Object text, javax.faces.component.UIComponent component, String property) throws IOException
- Overrides:
writeTextin classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException
- Overrides:
writeAttributein classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
writeURIAttribute
public void writeURIAttribute(String name, Object value, String property) throws IOException
- Overrides:
writeURIAttributein classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
startElement
public void startElement(String name, javax.faces.component.UIComponent component) throws IOException
- Overrides:
startElementin classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
endElement
public void endElement(String name) throws IOException
- Overrides:
endElementin classjavax.faces.context.ResponseWriterWrapper- Throws:
IOException
-
mergeAndMinimizeInlineScripts
protected String mergeAndMinimizeInlineScripts(String id, String type, List<String> inlines)
-
cloneWithWriter
public javax.faces.context.ResponseWriter cloneWithWriter(Writer writer)
- Overrides:
cloneWithWriterin classjavax.faces.context.ResponseWriterWrapper
-
-