gnu.xquery.util
Class XMLFormat

java.lang.Object
  extended by java.text.Format
      extended by gnu.lists.AbstractFormat
          extended by gnu.xquery.util.XMLFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class XMLFormat
extends AbstractFormat

A format that prints in XML syntax. This may be a bad idea - maybe we should just use XMLConsumer.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.Format
java.text.Format.Field
 
Constructor Summary
XMLFormat()
           
 
Method Summary
 void beginGroup(java.lang.String typeName, java.lang.Object type, Consumer out)
           
 void endGroup(java.lang.String typeName, Consumer out)
           
 void format(java.lang.Object value, Consumer out)
           
protected static boolean isWordChar(char ch)
           
 void writeObject(java.lang.Object obj, Consumer out)
           
 
Methods inherited from class gnu.lists.AbstractFormat
format, parseObject, write, writeBoolean, writeChar, writeInt, writeLong, writeObject, writeObject
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormat

public XMLFormat()
Method Detail

isWordChar

protected static final boolean isWordChar(char ch)

beginGroup

public void beginGroup(java.lang.String typeName,
                       java.lang.Object type,
                       Consumer out)
Overrides:
beginGroup in class AbstractFormat

endGroup

public void endGroup(java.lang.String typeName,
                     Consumer out)
Overrides:
endGroup in class AbstractFormat

writeObject

public void writeObject(java.lang.Object obj,
                        Consumer out)
Specified by:
writeObject in class AbstractFormat

format

public void format(java.lang.Object value,
                   Consumer out)
Overrides:
format in class AbstractFormat