org.zkoss.zk.au
Class AuWriters

java.lang.Object
  extended by org.zkoss.zk.au.AuWriters

public class AuWriters
extends java.lang.Object

Utilities to instantiate an implmentation of AuWriter.

Since:
3.0.1
Author:
tomyeh

Field Summary
static java.lang.String CONTENT_HEAD
          The first few characters of the output content.
static java.lang.String CONTENT_TYPE
          The content type of the output.
 
Constructor Summary
AuWriters()
           
 
Method Summary
static java.lang.Class getImplementationClass()
          Returns the implementation class of AuWriter that will be used to generate the output to the client.
static AuWriter newInstance()
          Creates an instance of AuWriter.
static void setImplementationClass(java.lang.Class cls)
          Sets the implementation class of AuWriter that will be used to generate the output to the client.
static void write(java.io.Writer out, AuResponse response)
          Writes a XML fragment representing the response to the output.
static void writeResponseId(java.io.Writer out, int resId)
          Wites a XML fragment representing the response ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_HEAD

public static final java.lang.String CONTENT_HEAD
The first few characters of the output content.

Since:
3.5.0
See Also:
Constant Field Values

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
The content type of the output.

Since:
3.5.0
See Also:
Constant Field Values
Constructor Detail

AuWriters

public AuWriters()
Method Detail

getImplementationClass

public static java.lang.Class getImplementationClass()
Returns the implementation class of AuWriter that will be used to generate the output to the client.

Default: HttpAuWriter.


setImplementationClass

public static void setImplementationClass(java.lang.Class cls)
Sets the implementation class of AuWriter that will be used to generate the output to the client.


newInstance

public static AuWriter newInstance()
                            throws UiException
Creates an instance of AuWriter.

Throws:
UiException

writeResponseId

public static void writeResponseId(java.io.Writer out,
                                   int resId)
                            throws java.io.IOException
Wites a XML fragment representing the response ID.

Throws:
java.io.IOException
Since:
3.5.0

write

public static void write(java.io.Writer out,
                         AuResponse response)
                  throws java.io.IOException
Writes a XML fragment representing the response to the output.

Throws:
java.io.IOException
Since:
3.5.0


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo