|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.faces.context Class ResponseWriterWrapper
java.lang.Object java.io.Writer javax.faces.context.ResponseWriter javax.faces.context.ResponseWriterWrapper
- 所有已实现的接口:
- Closeable, Flushable, Appendable
public abstract class ResponseWriterWrapper
- extends ResponseWriter
Provides a simple implementation of ResponseWriter
that
can be subclassed by developers wishing to provide specialized
behavior to an existing ResponseWriter
instance. The default
implementation of all methods is to call through to the wrapped
ResponseWriter
.
Usage: extend this class and override getWrapped()
to
return the instance we are wrapping.
- 从以下版本开始:
- 1.2
字段摘要 |
---|
Fields inherited from class java.io.Writer |
---|
lock |
构造器摘要 | |
---|---|
ResponseWriterWrapper()
|
方法摘要 | |
---|---|
ResponseWriter |
cloneWithWriter(Writer writer)
The default behavior of this method is to call ResponseWriter.cloneWithWriter(java.io.Writer)
on the wrapped ResponseWriter object. |
void |
close()
The default behavior of this method is to call Writer.close()
on the wrapped ResponseWriter object. |
void |
endDocument()
The default behavior of this method is to call ResponseWriter.endDocument()
on the wrapped ResponseWriter object. |
void |
endElement(String name)
The default behavior of this method is to call ResponseWriter.endElement(String)
on the wrapped ResponseWriter object. |
void |
flush()
The default behavior of this method is to call ResponseWriter.flush()
on the wrapped ResponseWriter object. |
String |
getCharacterEncoding()
The default behavior of this method is to call ResponseWriter.getCharacterEncoding()
on the wrapped ResponseWriter object. |
String |
getContentType()
The default behavior of this method is to call ResponseWriter.getContentType()
on the wrapped ResponseWriter object. |
protected abstract ResponseWriter |
getWrapped()
|
void |
startDocument()
The default behavior of this method is to call ResponseWriter.startDocument()
on the wrapped ResponseWriter object. |
void |
startElement(String name,
UIComponent component)
The default behavior of this method is to call ResponseWriter.startElement(String, javax.faces.component.UIComponent)
on the wrapped ResponseWriter object. |
void |
write(char[] cbuf,
int off,
int len)
The default behavior of this method is to call Writer.write(char[], int, int)
on the wrapped ResponseWriter object. |
void |
writeAttribute(String name,
Object value,
String property)
The default behavior of this method is to call ResponseWriter.writeAttribute(String, Object, String)
on the wrapped ResponseWriter object. |
void |
writeComment(Object comment)
The default behavior of this method is to call ResponseWriter.writeComment(Object)
on the wrapped ResponseWriter object. |
void |
writeText(char[] text,
int off,
int len)
The default behavior of this method is to call ResponseWriter.writeText(char[], int, int)
on the wrapped ResponseWriter object. |
void |
writeText(Object text,
String property)
The default behavior of this method is to call ResponseWriter.writeText(Object, String)
on the wrapped ResponseWriter object. |
void |
writeText(Object text,
UIComponent component,
String property)
The default behavior of this method is to call ResponseWriter.writeText(Object, UIComponent, String)
on the wrapped ResponseWriter object. |
void |
writeURIAttribute(String name,
Object value,
String property)
The default behavior of this method is to call ResponseWriter.writeURIAttribute(String, Object, String)
on the wrapped ResponseWriter object. |
类方法继承 java.io.Writer |
---|
append, append, append, write, write, write, write |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造器详细信息 |
---|
ResponseWriterWrapper
public ResponseWriterWrapper()
方法详细信息 |
---|
getWrapped
protected abstract ResponseWriter getWrapped()
- 返回:
- the instance that we are wrapping.
getContentType
public String getContentType()
The default behavior of this method is to call
ResponseWriter.getContentType()
on the wrappedResponseWriter
object.- 规范说明:
getContentType
in classResponseWriter
- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.getContentType()
getCharacterEncoding
public String getCharacterEncoding()
The default behavior of this method is to call
ResponseWriter.getCharacterEncoding()
on the wrappedResponseWriter
object.- 规范说明:
getCharacterEncoding
in classResponseWriter
- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.getCharacterEncoding()
flush
public void flush() throws IOException
The default behavior of this method is to call
ResponseWriter.flush()
on the wrappedResponseWriter
object.- 规范说明:
flush
in interfaceFlushable
- 规范说明:
flush
in classResponseWriter
- 抛出异常:
IOException
- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.flush()
startDocument
public void startDocument() throws IOException
The default behavior of this method is to call
ResponseWriter.startDocument()
on the wrappedResponseWriter
object.- 规范说明:
startDocument
in classResponseWriter
- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.startDocument()
endDocument
public void endDocument() throws IOException
The default behavior of this method is to call
ResponseWriter.endDocument()
on the wrappedResponseWriter
object.- 规范说明:
endDocument
in classResponseWriter
- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.endDocument()
startElement
public void startElement(String name, UIComponent component) throws IOException
The default behavior of this method is to call
ResponseWriter.startElement(String, javax.faces.component.UIComponent)
on the wrappedResponseWriter
object.- 规范说明:
startElement
in classResponseWriter
- 参数:
name
- Name of the element to be startedcomponent
- TheUIComponent
(if any) to which this element corresponds- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.startElement(String, javax.faces.component.UIComponent)
endElement
public void endElement(String name) throws IOException
The default behavior of this method is to call
ResponseWriter.endElement(String)
on the wrappedResponseWriter
object.- 规范说明:
endElement
in classResponseWriter
- 参数:
name
- Name of the element to be ended- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.endElement(String)
writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException
The default behavior of this method is to call
ResponseWriter.writeAttribute(String, Object, String)
on the wrappedResponseWriter
object.- 规范说明:
writeAttribute
in classResponseWriter
- 参数:
name
- Attribute name to be addedvalue
- Attribute value to be addedproperty
- Name of the property or attribute (if any) of theUIComponent
associated with the containing element, to which this generated attribute corresponds- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.writeAttribute(String, Object, String)
writeURIAttribute
public void writeURIAttribute(String name, Object value, String property) throws IOException
The default behavior of this method is to call
ResponseWriter.writeURIAttribute(String, Object, String)
on the wrappedResponseWriter
object.- 规范说明:
writeURIAttribute
in classResponseWriter
- 参数:
name
- Attribute name to be addedvalue
- Attribute value to be addedproperty
- Name of the property or attribute (if any) of theUIComponent
associated with the containing element, to which this generated attribute corresponds- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.writeURIAttribute(String, Object, String)
writeComment
public void writeComment(Object comment) throws IOException
The default behavior of this method is to call
ResponseWriter.writeComment(Object)
on the wrappedResponseWriter
object.- 规范说明:
writeComment
in classResponseWriter
- 参数:
comment
- Text content of the comment- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.writeComment(Object)
writeText
public void writeText(Object text, String property) throws IOException
The default behavior of this method is to call
ResponseWriter.writeText(Object, String)
on the wrappedResponseWriter
object.- 规范说明:
writeText
in classResponseWriter
- 参数:
text
- Text to be writtenproperty
- Name of the property or attribute (if any) of theUIComponent
associated with the containing element, to which this generated text corresponds- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.writeText(Object, String)
writeText
public void writeText(Object text, UIComponent component, String property) throws IOException
The default behavior of this method is to call
ResponseWriter.writeText(Object, UIComponent, String)
on the wrappedResponseWriter
object.- 重写:
writeText
in classResponseWriter
- 参数:
text
- Text to be writtencomponent
- TheUIComponent
(if any) to which this element correspondsproperty
- Name of the property or attribute (if any) of theUIComponent
associated with the containing element, to which this generated text corresponds- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.writeText(Object, String)
writeText
public void writeText(char[] text, int off, int len) throws IOException
The default behavior of this method is to call
ResponseWriter.writeText(char[], int, int)
on the wrappedResponseWriter
object.- 规范说明:
writeText
in classResponseWriter
- 参数:
text
- Text to be writtenoff
- Starting offset (zero-relative)len
- Number of characters to be written- 抛出异常:
IOException
- if an input/output error occurs- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.writeText(char[], int, int)
cloneWithWriter
public ResponseWriter cloneWithWriter(Writer writer)
The default behavior of this method is to call
ResponseWriter.cloneWithWriter(java.io.Writer)
on the wrappedResponseWriter
object.- 规范说明:
cloneWithWriter
in classResponseWriter
- 参数:
writer
- TheWriter
that is the output destination- 从以下版本开始:
- 1.2
- 另请参见:
ResponseWriter.cloneWithWriter(java.io.Writer)
close
public void close() throws IOException
The default behavior of this method is to call
Writer.close()
on the wrappedResponseWriter
object.- 抛出异常:
IOException
- 从以下版本开始:
- 1.2
- 另请参见:
Writer.close()
write
public void write(char[] cbuf, int off, int len) throws IOException
The default behavior of this method is to call
Writer.write(char[], int, int)
on the wrappedResponseWriter
object.- 抛出异常:
IOException
- 从以下版本开始:
- 1.2
- 另请参见:
Writer.write(char[], int, int)
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.