Java Doc for XslWriter.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » xsl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.xsl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.Writer
      com.caucho.xsl.XslWriter

XslWriter
public class XslWriter extends Writer implements ExtendedLocator(Code)
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.


Inner Class :static class StackItem

Field Summary
final static  L10NL
    
 String_filename
    
 int_line
    
 String_systemId
    
 int_tailLine
    
final static  Loggerlog
    

Constructor Summary
 XslWriter(HashMap env, StylesheetImpl stylesheet, TransformerImpl transformer)
    

Method Summary
public  voidaddCacheDepend(Path path)
     Add a dependency to the result document.
public  voidaddNamespace(String prefix, String url)
    
public  voidattribute(String url, String prefix, String local, String qName, String value)
    
public  voidattribute(String qName, String value)
    
public  voidbindNamespace(String prefix, String url)
    
public  voidclose()
    
public  voidcopyOf(Object value)
     Adds a deep copy of the node to the current node.
public  booleandisableEscaping(boolean disable)
    
public  voidflush()
     flush is meaningless for XslWriter.
public  intgetColumnNumber()
    
 ArrayListgetDepends()
     Returns the Path dependency list of the generated stylesheet.
public  booleangetDisableEscaping()
    
public  StringgetFilename()
    
public  intgetLineNumber()
    
public  javax.servlet.jsp.PageContextgetPage()
    
public  ObjectgetParameter(String name)
    
public  ObjectgetProperty(String name)
     Returns the attribute with the given name.
public  IteratorgetPropertyNames()
     Lists the names of all the attributes.
public  StringgetPublicId()
    
public  PathgetPwd()
    
public  StringgetSystemId()
    
public  TransformerImplgetTransformer()
    
 voidinit(XMLWriter xmlWriter)
    
 booleanisCacheable()
     Returns true if the generated stylesheet is currently cacheable.
public  booleanisFlagFirst(int id)
     Implementation function so jsp:decl tags aren't repeated.
public  XslWriteropenResultDocument(OutputStream os)
    
public  OutputStreamopenWrite(ExprEnvironment env, String href)
    
public  voidpopAttribute(XMLWriter writer)
     Sets the attribute value to the current text, and sets the current node to the parent.
public  voidpopComment()
     Sets the comment data to the current text, and sets the current to the the parent.
public  voidpopCopy(Node copyNode)
     Pops the copy.
public  voidpopElement()
    
public  NodepopFragment(XMLWriter oldWriter)
     Returns the generated fragment.
public  voidpopPi(String name)
     Sets the PI data to the current text, and sets the current node to the parent.
public  voidpopText()
     Pop the accumulated text to the DOM.
public  voidprint(String string)
     Adds a string to the current text node.
public  voidprint(boolean b)
     Adds a boolean to the current text node.
public  voidprint(char ch)
     Adds a character to the current text node.
public  voidprint(int i)
     Adds an integer to the current text node.
public  voidprint(long l)
     Adds an integer to the current text node.
public  voidprint(float f)
     Adds a float to the current text node.
public  voidprint(double d)
     Adds a double to the current text node.
public  voidprint(Object o)
     Adds an object to the current text node, converted by String.valueOf.
public  voidprintln()
     Adds a newline to the current text node.
public  voidprintln(boolean b)
     Adds a boolean to the current text node.
public  voidprintln(String s)
     Adds a string to the current text node.
public  voidprintln(char ch)
     Adds a character to the current text node.
public  voidprintln(int i)
     Adds an integer to the current text node.
public  voidprintln(long l)
     Adds a long to the current text node.
public  voidprintln(double d)
     Adds a double to the current text node.
public  voidprintln(float f)
     Adds a float to the current text node.
public  voidprintln(Object o)
     Adds an object to the current text node, converted by String.valueOf.
public  XMLWriterpushAttribute(String name)
     Adds a new attribute with the given name to the current node, making the attribute the current node.
public  XMLWriterpushAttribute(String name, NamespaceContext namespace)
     Adds a new attribute with the given name to the current node, making the attribute the current node.
public  XMLWriterpushAttribute(String prefix, String local, String url)
     Adds a namespace-aware attribute to the current node, making the new attribute the current node.

Each pushAttribute should be matched by a popAttribute.
Parameters:
  prefix - the prefix of the element name, e.g.

public  XMLWriterpushAttributeNs(String name, String url)
     Adds a new attribute to the current node, making the new attribute the current node.
public  voidpushComment()
     Adds an empty comment to the current node, making the attribute the current node.
public  voidpushCopy(Node copyNode)
     Copies the node without attributes or children.
public  voidpushElement(String name)
     Adds a new element to the current node, making the new element the current node.
public  voidpushElement(String name, NamespaceContext namespace)
     Adds a new element to the current node, making the new element the current node.
public  voidpushElement(String url, String prefix, String local, String name)
     Adds a namespace-aware element to the current node, making the new element the current node.

Each pushElement should be matched by a popElement.
Parameters:
  prefix - the prefix of the element name, e.g.

public  voidpushElementNs(String name, String url)
     Adds a new element to the current node, making the new element the current node.
public  XMLWriterpushFragment()
     Starts a fragment.
public  voidpushPi()
    
public  voidremoveProperty(String name)
     removes the attribute with the given name.
public  voidsetAttribute(String prefix, String local, String url, String value)
     Adds a namespace-aware attribute to the current node, making the new attribute the current node.

Each pushAttribute should be matched by a popAttribute.
Parameters:
  prefix - the prefix of the element name, e.g.

public  voidsetAttribute(String name, NamespaceContext namespace, String value)
     Adds a new attribute with the given name to the current node, making the attribute the current node.
public  voidsetAttribute(String name, String value)
     Directly sets an attribute with a value.
public  voidsetLocation(String systemId, String filename, int line)
    
public  voidsetNotCacheable()
     Indicate that the result document is not cacheable.
public  voidsetProperty(String name, Object value)
     Sets the attribute with the given name.
 voidstartElement(String url, String prefix, String local, String qName)
    
public  voidvalueOf(Object node)
     Adds a the contents of the node to the current node.
public  voidwrite(int ch)
     Adds a byte to the current text node.
public  voidwrite(byte[] buf, int offset, int length)
     Adds a byte buffer to the current text node.
public  voidwrite(char[] buf, int offset, int length)
     Adds a char buffer to the current text node.

Field Detail
L
final static L10N L(Code)



_filename
String _filename(Code)



_line
int _line(Code)



_systemId
String _systemId(Code)



_tailLine
int _tailLine(Code)



log
final static Logger log(Code)




Constructor Detail
XslWriter
XslWriter(HashMap env, StylesheetImpl stylesheet, TransformerImpl transformer)(Code)




Method Detail
addCacheDepend
public void addCacheDepend(Path path)(Code)
Add a dependency to the result document. When the result is checked for modification, this path will also be checked.



addNamespace
public void addNamespace(String prefix, String url)(Code)



attribute
public void attribute(String url, String prefix, String local, String qName, String value) throws IOException, SAXException(Code)
Sends the attribute to the output
Parameters:
  url - the namespace for the attribute name
Parameters:
  prefix - the prefix for the attribute name
Parameters:
  local - the local attribute name
Parameters:
  qName - the full qualified name
Parameters:
  value - the attribute's value



attribute
public void attribute(String qName, String value) throws IOException, SAXException(Code)
Sends the attribute to the output
Parameters:
  url - the namespace for the attribute name
Parameters:
  prefix - the prefix for the attribute name
Parameters:
  local - the local attribute name
Parameters:
  qName - the full qualified name
Parameters:
  value - the attribute's value



bindNamespace
public void bindNamespace(String prefix, String url) throws IOException, SAXException(Code)



close
public void close() throws IOException(Code)



copyOf
public void copyOf(Object value) throws IOException, SAXException, XPathException(Code)
Adds a deep copy of the node to the current node.
Parameters:
  XPath - node to be copied to the destination.



disableEscaping
public boolean disableEscaping(boolean disable) throws IOException, SAXException(Code)



flush
public void flush()(Code)
flush is meaningless for XslWriter. It's only added to conform to Writer.



getColumnNumber
public int getColumnNumber()(Code)



getDepends
ArrayList getDepends()(Code)
Returns the Path dependency list of the generated stylesheet.



getDisableEscaping
public boolean getDisableEscaping()(Code)



getFilename
public String getFilename()(Code)



getLineNumber
public int getLineNumber()(Code)



getPage
public javax.servlet.jsp.PageContext getPage()(Code)



getParameter
public Object getParameter(String name)(Code)



getProperty
public Object getProperty(String name)(Code)
Returns the attribute with the given name.



getPropertyNames
public Iterator getPropertyNames()(Code)
Lists the names of all the attributes.



getPublicId
public String getPublicId()(Code)



getPwd
public Path getPwd()(Code)



getSystemId
public String getSystemId()(Code)



getTransformer
public TransformerImpl getTransformer()(Code)



init
void init(XMLWriter xmlWriter)(Code)



isCacheable
boolean isCacheable()(Code)
Returns true if the generated stylesheet is currently cacheable.



isFlagFirst
public boolean isFlagFirst(int id)(Code)
Implementation function so jsp:decl tags aren't repeated.



openResultDocument
public XslWriter openResultDocument(OutputStream os) throws IOException, SAXException(Code)



openWrite
public OutputStream openWrite(ExprEnvironment env, String href) throws IOException(Code)



popAttribute
public void popAttribute(XMLWriter writer) throws IOException, SAXException(Code)
Sets the attribute value to the current text, and sets the current node to the parent.



popComment
public void popComment() throws IOException, SAXException(Code)
Sets the comment data to the current text, and sets the current to the the parent.



popCopy
public void popCopy(Node copyNode) throws IOException, SAXException(Code)
Pops the copy.



popElement
public void popElement() throws IOException, SAXException(Code)



popFragment
public Node popFragment(XMLWriter oldWriter) throws IOException, SAXException(Code)
Returns the generated fragment. The current node does not contain the new fragment. the generated fragment.



popPi
public void popPi(String name) throws IOException, SAXException(Code)
Sets the PI data to the current text, and sets the current node to the parent.



popText
public void popText() throws IOException, SAXException(Code)
Pop the accumulated text to the DOM.



print
public void print(String string)(Code)
Adds a string to the current text node.



print
public void print(boolean b)(Code)
Adds a boolean to the current text node.



print
public void print(char ch)(Code)
Adds a character to the current text node.



print
public void print(int i)(Code)
Adds an integer to the current text node.



print
public void print(long l)(Code)
Adds an integer to the current text node.



print
public void print(float f)(Code)
Adds a float to the current text node.



print
public void print(double d)(Code)
Adds a double to the current text node.



print
public void print(Object o)(Code)
Adds an object to the current text node, converted by String.valueOf.



println
public void println()(Code)
Adds a newline to the current text node.



println
public void println(boolean b)(Code)
Adds a boolean to the current text node.



println
public void println(String s)(Code)
Adds a string to the current text node.



println
public void println(char ch)(Code)
Adds a character to the current text node.



println
public void println(int i)(Code)
Adds an integer to the current text node.



println
public void println(long l)(Code)
Adds a long to the current text node.



println
public void println(double d)(Code)
Adds a double to the current text node.



println
public void println(float f)(Code)
Adds a float to the current text node.



println
public void println(Object o)(Code)
Adds an object to the current text node, converted by String.valueOf.



pushAttribute
public XMLWriter pushAttribute(String name) throws IOException, SAXException(Code)
Adds a new attribute with the given name to the current node, making the attribute the current node.



pushAttribute
public XMLWriter pushAttribute(String name, NamespaceContext namespace) throws IOException, SAXException(Code)
Adds a new attribute with the given name to the current node, making the attribute the current node.



pushAttribute
public XMLWriter pushAttribute(String prefix, String local, String url) throws IOException, SAXException(Code)
Adds a namespace-aware attribute to the current node, making the new attribute the current node.

Each pushAttribute should be matched by a popAttribute.
Parameters:
  prefix - the prefix of the element name, e.g. xsl
Parameters:
  local - the local part of the element name, e.g. template
Parameters:
  url - the namespace url, e.g. http://www.xml.org/...




pushAttributeNs
public XMLWriter pushAttributeNs(String name, String url) throws IOException, SAXException(Code)
Adds a new attribute to the current node, making the new attribute the current node.

Each pushAttributeNs should be matched by a popAttribute.
Parameters:
  name - name of the element
Parameters:
  url - namespace url




pushComment
public void pushComment() throws IOException, SAXException(Code)
Adds an empty comment to the current node, making the attribute the current node.



pushCopy
public void pushCopy(Node copyNode) throws IOException, SAXException(Code)
Copies the node without attributes or children.



pushElement
public void pushElement(String name) throws IOException, SAXException(Code)
Adds a new element to the current node, making the new element the current node.

Each pushElement should be matched by a popElement.
Parameters:
  name - name of the element




pushElement
public void pushElement(String name, NamespaceContext namespace) throws IOException, SAXException(Code)
Adds a new element to the current node, making the new element the current node.

Each pushElement should be matched by a popElement.
Parameters:
  name - name of the element
Parameters:
  namespace - namespace context




pushElement
public void pushElement(String url, String prefix, String local, String name) throws IOException, SAXException(Code)
Adds a namespace-aware element to the current node, making the new element the current node.

Each pushElement should be matched by a popElement.
Parameters:
  prefix - the prefix of the element name, e.g. xsl
Parameters:
  local - the local part of the element name, e.g. template
Parameters:
  url - the namespace url, e.g. http://www.xml.org/...




pushElementNs
public void pushElementNs(String name, String url) throws IOException, SAXException(Code)
Adds a new element to the current node, making the new element the current node.

Each pushElement should be matched by a popElement.
Parameters:
  name - name of the element
Parameters:
  url - namespace url




pushFragment
public XMLWriter pushFragment() throws IOException, SAXException(Code)
Starts a fragment. The fragment becomes the current node.



pushPi
public void pushPi() throws IOException, SAXException(Code)



removeProperty
public void removeProperty(String name)(Code)
removes the attribute with the given name.



setAttribute
public void setAttribute(String prefix, String local, String url, String value) throws IOException, SAXException(Code)
Adds a namespace-aware attribute to the current node, making the new attribute the current node.

Each pushAttribute should be matched by a popAttribute.
Parameters:
  prefix - the prefix of the element name, e.g. xsl
Parameters:
  local - the local part of the element name, e.g. template
Parameters:
  url - the namespace url, e.g. http://www.xml.org/...




setAttribute
public void setAttribute(String name, NamespaceContext namespace, String value) throws IOException, SAXException(Code)
Adds a new attribute with the given name to the current node, making the attribute the current node.



setAttribute
public void setAttribute(String name, String value) throws IOException, SAXException(Code)
Directly sets an attribute with a value.



setLocation
public void setLocation(String systemId, String filename, int line) throws IOException, SAXException(Code)



setNotCacheable
public void setNotCacheable()(Code)
Indicate that the result document is not cacheable.



setProperty
public void setProperty(String name, Object value)(Code)
Sets the attribute with the given name.



startElement
void startElement(String url, String prefix, String local, String qName) throws IOException, SAXException(Code)



valueOf
public void valueOf(Object node) throws IOException, SAXException(Code)
Adds a the contents of the node to the current node.
Parameters:
  node - node to print



write
public void write(int ch)(Code)
Adds a byte to the current text node.



write
public void write(byte[] buf, int offset, int length)(Code)
Adds a byte buffer to the current text node.



write
public void write(char[] buf, int offset, int length)(Code)
Adds a char buffer to the current text node.



Fields inherited from java.io.Writer
protected Object lock(Code)(Java Doc)

Methods inherited from java.io.Writer
public Writer append(CharSequence csq) throws IOException(Code)(Java Doc)
public Writer append(CharSequence csq, int start, int end) throws IOException(Code)(Java Doc)
public Writer append(char c) throws IOException(Code)(Java Doc)
abstract public void close() throws IOException(Code)(Java Doc)
abstract public void flush() throws IOException(Code)(Java Doc)
public void write(int c) throws IOException(Code)(Java Doc)
public void write(char cbuf) throws IOException(Code)(Java Doc)
abstract public void write(char cbuf, int off, int len) throws IOException(Code)(Java Doc)
public void write(String str) throws IOException(Code)(Java Doc)
public void write(String str, int off, int len) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.