edu.stanford.db.xml.util
Class GenericSerializer

java.lang.Object
  |
  +--edu.stanford.db.xml.util.GenericSerializer

public class GenericSerializer
extends java.lang.Object


Field Summary
static char ABB_CDATA
           
static char ABB_LONG
           
static char ANYQUOTE
           
 
Constructor Summary
GenericSerializer()
           
 
Method Summary
static char abbrevQuote(java.lang.String s)
           
static boolean isCDATA(java.lang.String s)
           
static void writeAttValue(java.lang.String str, java.io.Writer w)
          < and &
static void writeCDATA(java.lang.String str, java.io.Writer w)
          ]]> cannot be there! FIXME: how to we encode binary data? It is a function of some more abstract layer?
static void writeEscaped(java.lang.String str, java.io.Writer w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABB_LONG

public static final char ABB_LONG

ABB_CDATA

public static final char ABB_CDATA

ANYQUOTE

public static final char ANYQUOTE
Constructor Detail

GenericSerializer

public GenericSerializer()
Method Detail

writeEscaped

public static void writeEscaped(java.lang.String str,
                                java.io.Writer w)
                         throws java.io.IOException

writeCDATA

public static void writeCDATA(java.lang.String str,
                              java.io.Writer w)
                       throws java.io.IOException
]]> cannot be there! FIXME: how to we encode binary data? It is a function of some more abstract layer?

writeAttValue

public static void writeAttValue(java.lang.String str,
                                 java.io.Writer w)
                          throws java.io.IOException
< and &

isCDATA

public static boolean isCDATA(java.lang.String s)

abbrevQuote

public static char abbrevQuote(java.lang.String s)