org.vfny.geoserver.responses
Class ResponseUtils

java.lang.Object
  extended byorg.vfny.geoserver.responses.ResponseUtils

public class ResponseUtils
extends java.lang.Object


Constructor Summary
ResponseUtils()
           
 
Method Summary
static java.lang.String encodeXML(java.lang.String inData)
          Parses the passed string, and encodes the special characters (used in xml for special purposes) with the appropriate codes.
static void writeEscapedString(java.io.Writer writer, java.lang.String string)
          Writes string into writer, escaping &, ', ", <, and > with the XML excape strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseUtils

public ResponseUtils()
Method Detail

encodeXML

public static java.lang.String encodeXML(java.lang.String inData)
Parses the passed string, and encodes the special characters (used in xml for special purposes) with the appropriate codes. e.g. '<' is changed to '<'

Parameters:
inData - The string to encode into xml.
Returns:
the encoded string. Returns null, if null is passed as argument

writeEscapedString

public static void writeEscapedString(java.io.Writer writer,
                                      java.lang.String string)
                               throws java.io.IOException
Writes string into writer, escaping &, ', ", <, and > with the XML excape strings.

Throws:
java.io.IOException