|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--com.caucho.xsl.XslWriter
Writer stream for generating stylesheet output.
Because XSL produces an XML tree, XslWriter contains extra methods for constructing the tree.
The writer methods, e.g. println, add to the current text node.
In addition, stylesheets can access variables through getPwd and getPage.
Fields inherited from class java.io.Writer |
lock |
Method Summary | |
void |
addCacheDepend(Path path)
Add a dependency to the result document. |
void |
addNamespace(java.lang.String prefix,
java.lang.String url)
|
void |
close()
|
void |
copyOf(java.lang.Object value)
Adds a deep copy of the node to the current node. |
boolean |
disableEscaping(boolean disable)
|
void |
flush()
flush is meaningless for XslWriter. |
boolean |
getDisableEscaping()
|
PageContext |
getPage()
Deprecated. |
java.lang.Object |
getParameter(java.lang.String name)
|
java.lang.Object |
getProperty(java.lang.String name)
Returns the attribute with the given name. |
java.util.Iterator |
getPropertyNames()
Lists the names of all the attributes. |
Path |
getPwd()
|
TransformerImpl |
getTransformer()
|
boolean |
isFlagFirst(int id)
Implementation function so jsp:decl tags aren't repeated. |
void |
popAttribute()
Sets the attribute value to the current text, and sets the current node to the parent. |
void |
popComment()
Sets the comment data to the current text, and sets the current to the the parent. |
void |
popCopy(Node copyNode)
Pops the copy. |
void |
popElement()
|
Node |
popFragment(XMLWriter oldWriter)
Returns the generated fragment. |
void |
popPi(java.lang.String name)
Sets the PI data to the current text, and sets the current node to the parent. |
void |
popText()
Pop the accumulated text to the DOM. |
void |
print(boolean b)
Adds a boolean to the current text node. |
void |
print(char ch)
Adds a character to the current text node. |
void |
print(double d)
Adds a double to the current text node. |
void |
print(float f)
Adds a float to the current text node. |
void |
print(int i)
Adds an integer to the current text node. |
void |
print(long l)
Adds an integer to the current text node. |
void |
print(java.lang.Object o)
Adds an object to the current text node, converted by String.valueOf. |
void |
print(java.lang.String string)
Adds a string to the current text node. |
void |
println()
Adds a newline to the current text node. |
void |
println(boolean b)
Adds a boolean to the current text node. |
void |
println(char ch)
Adds a character to the current text node. |
void |
println(double d)
Adds a double to the current text node. |
void |
println(float f)
Adds a float to the current text node. |
void |
println(int i)
Adds an integer to the current text node. |
void |
println(long l)
Adds a long to the current text node. |
void |
println(java.lang.Object o)
Adds an object to the current text node, converted by String.valueOf. |
void |
println(java.lang.String s)
Adds a string to the current text node. |
void |
pushAttribute(java.lang.String name)
Adds a new attribute with the given name to the current node, making the attribute the current node. |
void |
pushAttribute(java.lang.String name,
NamespaceContext namespace)
Adds a new attribute with the given name to the current node, making the attribute the current node. |
void |
pushAttribute(java.lang.String prefix,
java.lang.String local,
java.lang.String url)
Adds a namespace-aware attribute to the current node, making the new attribute the current node. |
void |
pushAttributeNs(java.lang.String name,
java.lang.String url)
Adds a new attribute to the current node, making the new attribute the current node. |
void |
pushComment()
Adds an empty comment to the current node, making the attribute the current node. |
void |
pushCopy(Node copyNode)
Copies the node without attributes or children. |
void |
pushElement(java.lang.String name)
Adds a new element to the current node, making the new element the current node. |
void |
pushElement(java.lang.String name,
NamespaceContext namespace)
Adds a new element to the current node, making the new element the current node. |
void |
pushElement(java.lang.String url,
java.lang.String prefix,
java.lang.String local,
java.lang.String name)
Adds a namespace-aware element to the current node, making the new element the current node. |
void |
pushElementNs(java.lang.String name,
java.lang.String url)
Adds a new element to the current node, making the new element the current node. |
XMLWriter |
pushFragment()
Starts a fragment. |
void |
pushPi()
|
void |
removeProperty(java.lang.String name)
removes the attribute with the given name. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Directly sets an attribute with a value. |
void |
setLocation(java.lang.String filename,
int line)
|
void |
setNotCacheable()
Indicate that the result document is not cacheable. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the attribute with the given name. |
void |
valueOf(java.lang.Object node)
Adds a the contents of the node to the current node. |
void |
write(byte[] buf,
int offset,
int length)
Adds a byte buffer to the current text node. |
void |
write(char[] buf,
int offset,
int length)
Adds a char buffer to the current text node. |
void |
write(int ch)
Adds a byte to the current text node. |
Methods inherited from class java.io.Writer |
write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public TransformerImpl getTransformer()
public void setNotCacheable()
public void addCacheDepend(Path path)
public boolean isFlagFirst(int id)
public void write(int ch)
write
in class java.io.Writer
public void write(byte[] buf, int offset, int length)
public void write(char[] buf, int offset, int length)
write
in class java.io.Writer
public void print(java.lang.String string)
public void print(boolean b)
public void print(char ch)
public void print(int i)
public void print(long l)
public void print(float f)
public void print(double d)
public void print(java.lang.Object o)
public void println()
public void println(boolean b)
public void println(java.lang.String s)
public void println(char ch)
public void println(int i)
public void println(long l)
public void println(double d)
public void println(float f)
public void println(java.lang.Object o)
public void flush()
flush
in class java.io.Writer
public void close() throws java.io.IOException
close
in class java.io.Writer
public boolean getDisableEscaping()
public boolean disableEscaping(boolean disable) throws java.io.IOException, SAXException
public void setLocation(java.lang.String filename, int line) throws java.io.IOException, SAXException
public void pushElement(java.lang.String name) throws java.io.IOException, SAXException
Each pushElement should be matched by a popElement.
name
- name of the elementpublic void pushElement(java.lang.String name, NamespaceContext namespace) throws java.io.IOException, SAXException
Each pushElement should be matched by a popElement.
name
- name of the elementnamespace
- namespace contextpublic void pushElementNs(java.lang.String name, java.lang.String url) throws java.io.IOException, SAXException
Each pushElement should be matched by a popElement.
name
- name of the elementurl
- namespace urlpublic void pushElement(java.lang.String url, java.lang.String prefix, java.lang.String local, java.lang.String name) throws java.io.IOException, SAXException
Each pushElement should be matched by a popElement.
prefix
- the prefix of the element name, e.g. xsllocal
- the local part of the element name, e.g. templateurl
- the namespace url, e.g. http://www.xml.org/...public void pushAttribute(java.lang.String name) throws java.io.IOException, SAXException
public void pushAttribute(java.lang.String name, NamespaceContext namespace) throws java.io.IOException, SAXException
public void pushAttributeNs(java.lang.String name, java.lang.String url) throws java.io.IOException, SAXException
Each pushAttributeNs should be matched by a popAttribute.
name
- name of the elementurl
- namespace urlpublic void pushAttribute(java.lang.String prefix, java.lang.String local, java.lang.String url) throws java.io.IOException, SAXException
Each pushAttribute should be matched by a popAttribute.
prefix
- the prefix of the element name, e.g. xsllocal
- the local part of the element name, e.g. templateurl
- the namespace url, e.g. http://www.xml.org/...public void popAttribute() throws java.io.IOException, SAXException
public void setAttribute(java.lang.String name, java.lang.String value) throws java.io.IOException, SAXException
public void pushCopy(Node copyNode) throws java.io.IOException, SAXException
public void popCopy(Node copyNode) throws java.io.IOException, SAXException
public void pushPi() throws java.io.IOException, SAXException
public void popPi(java.lang.String name) throws java.io.IOException, SAXException
public void pushComment() throws java.io.IOException, SAXException
public void popComment() throws java.io.IOException, SAXException
public XMLWriter pushFragment() throws java.io.IOException, SAXException
public Node popFragment(XMLWriter oldWriter) throws java.io.IOException, SAXException
public void valueOf(java.lang.Object node) throws java.io.IOException, SAXException
node
- node to printpublic void copyOf(java.lang.Object value) throws java.io.IOException, SAXException
XPath
- node to be copied to the destination.public void addNamespace(java.lang.String prefix, java.lang.String url)
public void popElement() throws java.io.IOException, SAXException
public void popText() throws java.io.IOException, SAXException
public java.lang.Object getProperty(java.lang.String name)
public void setProperty(java.lang.String name, java.lang.Object value)
public void removeProperty(java.lang.String name)
public java.util.Iterator getPropertyNames()
public java.lang.Object getParameter(java.lang.String name)
public Path getPwd()
public PageContext getPage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |