|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.common.XMLFormatter
public class XMLFormatter
A class which formats the Policy's data into XML format.
| Field Summary | |
|---|---|
static String |
PQB_FORMAT_KEY
Comment for PQB_FORMAT_KEY |
| Constructor Summary | |
|---|---|
XMLFormatter()
|
|
| Method Summary | |
|---|---|
void |
clearProperties()
|
void |
consumeString(BufferedReader in,
String toConsume)
consumes the specified string from the specified reader |
InputStream |
createXMLSubSectionInputStream(BufferedReader reader)
|
static String |
escape(String s)
|
void |
format(PrintStream out,
Formattable t,
String name)
Method format |
void |
formatValue(PrintStream out,
Object value)
Method formatValue |
static float |
getCurrentXMLFormatId()
|
float |
getPqbFormat()
|
String |
getProperty(String key)
|
List |
getTagNameStack()
|
void |
init()
init must be called at the begining of any file parsing or root object formating. |
void |
parse(BufferedReader in,
Formattable t,
String name)
Method parse |
String |
parseValue(BufferedReader in)
Method parseValue |
void |
readChildSeparator(BufferedReader in)
Method readChildSeparator |
void |
readElement(BufferedReader in,
String tagName)
read the input stream till the end of the specified element name |
String |
readUntil(BufferedReader in,
int charUntil)
|
Object |
setProperty(String key,
String value)
|
static String |
unescape(String s)
|
void |
writeChildSeparator(PrintStream out)
Method writeChildSeparator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PQB_FORMAT_KEY
PQB_FORMAT_KEY
| Constructor Detail |
|---|
public XMLFormatter()
| Method Detail |
|---|
public void clearProperties()
clearProperties in interface Formatter
public void consumeString(BufferedReader in,
String toConsume)
throws ImportExportException
in - toConsume -
ImportExportException - if the specified string wasn't found
IOException
public void format(PrintStream out,
Formattable t,
String name)
format in interface Formatterout - t - name -
public void formatValue(PrintStream out,
Object value)
formatValue in interface Formatterout - value - public float getPqbFormat()
getPqbFormat in interface Formatterpublic String getProperty(String key)
getProperty in interface Formatterkey -
public void init()
init in interface Formatter
public void parse(BufferedReader in,
Formattable t,
String name)
throws ImportExportException
Formatter
parse in interface FormatterImportExportExceptioncom.pcube.apps.engage.common.Formatter#parse(java.io.BufferedReader,
com.pcube.apps.engage.common.Formattable, java.lang.String[])
public String parseValue(BufferedReader in)
throws ImportExportException
parseValue in interface Formatterin -
ImportExportExceptionpublic void readChildSeparator(BufferedReader in)
readChildSeparator in interface Formatterin -
public void readElement(BufferedReader in,
String tagName)
throws ImportExportException
readElement in interface FormattertagName - -
ImportExportException
public Object setProperty(String key,
String value)
setProperty in interface Formatterkey - value -
public void writeChildSeparator(PrintStream out)
writeChildSeparator in interface Formatterout - public static float getCurrentXMLFormatId()
public String readUntil(BufferedReader in,
int charUntil)
throws ImportExportException
string -
ImportExportExceptionpublic List getTagNameStack()
public InputStream createXMLSubSectionInputStream(BufferedReader reader)
createXMLSubSectionInputStream in interface Formatterpublic static String escape(String s)
public static String unescape(String s)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||