You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2011/05/09 20:37:29 UTC
svn commit: r1101139 -
/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/context/ResponseWriterWrapper.java
Author: lu4242
Date: Mon May 9 18:37:29 2011
New Revision: 1101139
URL: http://svn.apache.org/viewvc?rev=1101139&view=rev
Log:
MYFACES-3132 javax.faces.context.ResponseWriterWrapper implementation is overdone
Modified:
myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/context/ResponseWriterWrapper.java
Modified: myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/context/ResponseWriterWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/context/ResponseWriterWrapper.java?rev=1101139&r1=1101138&r2=1101139&view=diff
==============================================================================
--- myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/context/ResponseWriterWrapper.java (original)
+++ myfaces/core/branches/2.0.x/api/src/main/java/javax/faces/context/ResponseWriterWrapper.java Mon May 9 18:37:29 2011
@@ -31,45 +31,6 @@ import java.io.Writer;
*/
public abstract class ResponseWriterWrapper extends ResponseWriter implements FacesWrapper<ResponseWriter>
{
-
- public abstract ResponseWriter getWrapped();
-
- @Override
- public void endElement(String name) throws IOException
- {
- getWrapped().endElement(name);
- }
-
- @Override
- public void writeComment(Object comment) throws IOException
- {
- getWrapped().writeComment(comment);
- }
-
- @Override
- public void startElement(String name, UIComponent component) throws IOException
- {
- getWrapped().startElement(name, component);
- }
-
- @Override
- public void writeText(Object text, String property) throws IOException
- {
- getWrapped().writeText(text, property);
- }
-
- @Override
- public void writeText(char[] text, int off, int len) throws IOException
- {
- getWrapped().writeText(text, off, len);
- }
-
- @Override
- public void write(char[] cbuf, int off, int len) throws IOException
- {
- getWrapped().write(cbuf, off, len);
- }
-
@Override
public ResponseWriter cloneWithWriter(Writer writer)
{
@@ -77,15 +38,15 @@ public abstract class ResponseWriterWrap
}
@Override
- public void writeURIAttribute(String name, Object value, String property) throws IOException
+ public void close() throws IOException
{
- getWrapped().writeURIAttribute(name, value, property);
+ getWrapped().close();
}
@Override
- public void close() throws IOException
+ public void endCDATA() throws IOException
{
- getWrapped().close();
+ getWrapped().endCDATA();
}
@Override
@@ -95,6 +56,12 @@ public abstract class ResponseWriterWrap
}
@Override
+ public void endElement(String name) throws IOException
+ {
+ getWrapped().endElement(name);
+ }
+
+ @Override
public void flush() throws IOException
{
getWrapped().flush();
@@ -112,27 +79,8 @@ public abstract class ResponseWriterWrap
return getWrapped().getContentType();
}
- @Override
- public void startDocument() throws IOException
- {
- getWrapped().startDocument();
- }
-
- @Override
- public void writeAttribute(String name, Object value, String property) throws IOException
- {
- getWrapped().writeAttribute(name, value, property);
- }
+ public abstract ResponseWriter getWrapped();
- /**
- * @since 1.2
- */
- @Override
- public void writeText(Object object, UIComponent component, String string) throws IOException
- {
- getWrapped().writeText(object, component, string);
- }
-
@Override
public void startCDATA() throws IOException
{
@@ -140,52 +88,60 @@ public abstract class ResponseWriterWrap
}
@Override
- public void endCDATA() throws IOException
+ public void startDocument() throws IOException
{
- getWrapped().endCDATA();
+ getWrapped().startDocument();
}
@Override
- public Writer append(char c) throws IOException
+ public void startElement(String name, UIComponent component) throws IOException
{
- return getWrapped().append(c);
+ getWrapped().startElement(name, component);
}
@Override
- public Writer append(CharSequence csq, int start, int end)
- throws IOException
+ public void write(char[] cbuf, int off, int len) throws IOException
{
- return getWrapped().append(csq, start, end);
+ getWrapped().write(cbuf, off, len);
}
@Override
- public Writer append(CharSequence csq) throws IOException
+ public void writeAttribute(String name, Object value, String property) throws IOException
{
- return getWrapped().append(csq);
+ getWrapped().writeAttribute(name, value, property);
}
@Override
- public void write(char[] cbuf) throws IOException
+ public void writeComment(Object comment) throws IOException
{
- getWrapped().write(cbuf);
+ getWrapped().writeComment(comment);
}
@Override
- public void write(int c) throws IOException
+ public void writeText(char[] text, int off, int len) throws IOException
{
- getWrapped().write(c);
+ getWrapped().writeText(text, off, len);
}
-
+
@Override
- public void write(String str, int off, int len) throws IOException
+ public void writeText(Object text, String property) throws IOException
{
- getWrapped().write(str, off, len);
+ getWrapped().writeText(text, property);
}
+ /**
+ * @since 1.2
+ */
+ @Override
+ public void writeText(Object object, UIComponent component, String string) throws IOException
+ {
+ getWrapped().writeText(object, component, string);
+ }
+
@Override
- public void write(String str) throws IOException
+ public void writeURIAttribute(String name, Object value, String property) throws IOException
{
- getWrapped().write(str);
+ getWrapped().writeURIAttribute(name, value, property);
}
}