Back to index

wims  3.65+svn20090927
Public Member Functions | Package Attributes
rene.util.xml.XmlWriter Class Reference
Inheritance diagram for rene.util.xml.XmlWriter:
Inheritance graph
[legend]
Collaboration diagram for rene.util.xml.XmlWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XmlWriter (PrintWriter o)
void printTag (String tag, String content)
void printTagNewLine (String tag, String content)
void printTag (String tag, String arg, String value, String content)
void printTagNewLine (String tag, String arg, String value, String content)
void startTag (String tag)
void startTag (String tag, String arg, String value)
void finishTag (String tag, String arg, String value)
void finishTag (String tag)
void finishTagNewLine (String tag)
void startTagStart (String tag)
void startTagEnd ()
void finishTag ()
void finishTagNewLine ()
void startTagEndNewLine ()
void printArg (String arg, String value)
void startTagNewLine (String tag, String arg, String value)
void startTagNewLine (String tag)
void endTag (String tag)
void endTagNewLine (String tag)
void println ()
void print (String s)
void println (String s)
void printEncoding (String s)
void printXml ()
void printEncoding ()
void printXls (String s)
void printParagraphs (String s, int linelength)
void printDoctype (String top, String dtd)
void close ()

Package Attributes

PrintWriter Out

Detailed Description

Definition at line 8 of file XmlWriter.java.


Constructor & Destructor Documentation

rene.util.xml.XmlWriter.XmlWriter ( PrintWriter  o) [inline]

Definition at line 10 of file XmlWriter.java.

       {      Out=o;
       }

Member Function Documentation

void rene.util.xml.XmlWriter.close ( ) [inline]

Reimplemented in rene.util.xml.SVGWriter.

Definition at line 144 of file XmlWriter.java.

       {      Out.close();
       }
void rene.util.xml.XmlWriter.endTag ( String  tag) [inline]

Definition at line 89 of file XmlWriter.java.

       {      Out.print("</");
              Out.print(tag);
              Out.print(">");
       }

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.endTagNewLine ( String  tag) [inline]

Definition at line 94 of file XmlWriter.java.

       {      endTag(tag);
              Out.println();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.finishTag ( String  tag,
String  arg,
String  value 
) [inline]

Definition at line 42 of file XmlWriter.java.

       {      Out.print("<");
              Out.print(tag);
              printArg(arg,value);
              Out.println("/>");
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.finishTag ( String  tag) [inline]

Definition at line 48 of file XmlWriter.java.

       {      Out.print("<");
              Out.print(tag);
              Out.print("/>");
       }

Definition at line 65 of file XmlWriter.java.

       {      Out.print("/>");
       }
void rene.util.xml.XmlWriter.finishTagNewLine ( String  tag) [inline]

Definition at line 53 of file XmlWriter.java.

       {      Out.print("<");
              Out.print(tag);
              Out.println("/>");
       }

Here is the caller graph for this function:

Definition at line 68 of file XmlWriter.java.

       {      Out.println("/>");
       }
void rene.util.xml.XmlWriter.print ( String  s) [inline]

Definition at line 101 of file XmlWriter.java.

       {      Out.print(XmlTranslator.toXml(s));
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.printArg ( String  arg,
String  value 
) [inline]

Definition at line 74 of file XmlWriter.java.

       {      Out.print(" ");
              print(arg);
              Out.print("=\"");
              print(value);
              Out.print("\"");
       }

Here is the call graph for this function:

void rene.util.xml.XmlWriter.printDoctype ( String  top,
String  dtd 
) [inline]

Definition at line 136 of file XmlWriter.java.

       {      Out.print("<!DOCTYPE ");
              Out.print(top);
              Out.print(" SYSTEM \"");
              Out.print(dtd);
              Out.println("\">");
       }
void rene.util.xml.XmlWriter.printEncoding ( String  s) [inline]

Definition at line 107 of file XmlWriter.java.

       {      if (s.equals("")) Out.println("<?xml version=\"1.0\"?>");
              else Out.println("<?xml version=\"1.0\" encoding=\""+s+"\"?>");
       }

Here is the caller graph for this function:

Definition at line 114 of file XmlWriter.java.

       {      printEncoding("utf-8");
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 98 of file XmlWriter.java.

       {      Out.println();
       }

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.println ( String  s) [inline]

Definition at line 104 of file XmlWriter.java.

       {      Out.println(XmlTranslator.toXml(s));
       }

Here is the call graph for this function:

void rene.util.xml.XmlWriter.printParagraphs ( String  s,
int  linelength 
) [inline]

Definition at line 120 of file XmlWriter.java.

       {      StringParser p=new StringParser(s);
              Vector v=p.wrapwords(linelength);
              for (int i=0; i<v.size(); i++)
              {      startTag("P");
                     s=(String)v.elementAt(i);
                     StringParser q=new StringParser(s);
                     Vector w=q.wraplines(linelength);
                     for (int j=0; j<w.size(); j++)
                     {      if (j>0) println();
                            s=(String)w.elementAt(j);
                            print(s);
                     }
                     endTagNewLine("P");
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.printTag ( String  tag,
String  content 
) [inline]

Definition at line 13 of file XmlWriter.java.

       {      startTag(tag);
              print(content);
              endTag(tag);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.printTag ( String  tag,
String  arg,
String  value,
String  content 
) [inline]

Definition at line 22 of file XmlWriter.java.

       {      startTag(tag,arg,value);
              print(content);
              endTag(tag);
       }

Here is the call graph for this function:

void rene.util.xml.XmlWriter.printTagNewLine ( String  tag,
String  content 
) [inline]

Definition at line 18 of file XmlWriter.java.

       {      printTag(tag,content);
              Out.println();
       }

Here is the call graph for this function:

void rene.util.xml.XmlWriter.printTagNewLine ( String  tag,
String  arg,
String  value,
String  content 
) [inline]

Definition at line 27 of file XmlWriter.java.

       {      printTag(tag,arg,value,content);
              Out.println();
       }

Here is the call graph for this function:

void rene.util.xml.XmlWriter.printXls ( String  s) [inline]

Definition at line 117 of file XmlWriter.java.

       {      Out.println("<?xml-stylesheet href=\""+s+"\" type=\"text/xsl\"?>");
       }

Definition at line 111 of file XmlWriter.java.

       {      printEncoding("");
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.startTag ( String  tag) [inline]

Definition at line 31 of file XmlWriter.java.

       {      Out.print("<");
              Out.print(tag);
              Out.print(">");
       }

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.startTag ( String  tag,
String  arg,
String  value 
) [inline]

Definition at line 36 of file XmlWriter.java.

       {      Out.print("<");
              Out.print(tag);
              printArg(arg,value);
              Out.print(">");
       }

Here is the call graph for this function:

Definition at line 62 of file XmlWriter.java.

       {      Out.print(">");
       }

Here is the caller graph for this function:

Definition at line 71 of file XmlWriter.java.

       {      Out.println(">");
       }

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.startTagNewLine ( String  tag,
String  arg,
String  value 
) [inline]

Definition at line 81 of file XmlWriter.java.

       {      startTag(tag,arg,value);
              Out.println();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.util.xml.XmlWriter.startTagNewLine ( String  tag) [inline]

Definition at line 85 of file XmlWriter.java.

       {      startTag(tag);
              Out.println();
       }

Here is the call graph for this function:

void rene.util.xml.XmlWriter.startTagStart ( String  tag) [inline]

Definition at line 58 of file XmlWriter.java.

       {      Out.print("<");
              Out.print(tag);
       }

Here is the caller graph for this function:


Member Data Documentation

PrintWriter rene.util.xml.XmlWriter.Out [package]

Definition at line 9 of file XmlWriter.java.


The documentation for this class was generated from the following file: