|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.api.XMLConverter
public class XMLConverter
Converts internal binary file format to xml format and vice versa.
XMLConverter converter = new XMLConverter();
converter.setDebugLevel(vDebug);
converter.B2XML(binaryCatFilPath, null);
| Field Summary | |
|---|---|
static int |
vDebug
Indicates to open the debug. |
static int |
vError
Indicates to open the error. |
static int |
vOff
Indicates to close the debug. |
| Constructor Summary | |
|---|---|
XMLConverter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
B2XML(java.lang.String binaryFileName,
java.lang.String xmlFileFolder)
Converts the binary file to an xml format file. |
boolean |
saveAs(java.lang.String srcCatFullPath,
java.lang.String destCatFullPath)
Saves the catalog file as another file, using the file extension to control the format. |
void |
setDebugLevel(int level)
Sets the debug level for JReport Designer. |
boolean |
setLogFile(java.lang.String fileName)
Sets the log file. |
java.lang.String |
XML2B(java.lang.String xmlFileName,
java.lang.String binaryFileFolder)
Converts the XML format file to a binary file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int vOff
setDebugLevel(int)public static final int vDebug
setDebugLevel(int)public static final int vError
setDebugLevel(int)| Constructor Detail |
|---|
public XMLConverter()
| Method Detail |
|---|
public void setDebugLevel(int level)
vOff,
vDebug,
vErrorpublic boolean setLogFile(java.lang.String fileName)
fileName - the log file name
LogFileName specifies where the debug, error and other information will go. LogFileName contains both the path and the file name. If no path is specified, the current path is used. If no file name is specified, the file jreport.log is used
public java.lang.String B2XML(java.lang.String binaryFileName,
java.lang.String xmlFileFolder)
binaryFileName - The full path and name of the binary file.xmlFileFolder - The full path of the XML format file. If omitted, it will be saved to the folder where the binary file resides.
null.
public java.lang.String XML2B(java.lang.String xmlFileName,
java.lang.String binaryFileFolder)
xmlFileName - The full path and name of the XML file.binaryFileFolder - The full path of the binary file. If omitted, it will be saved to the folder where the XML file resides.
null.
public boolean saveAs(java.lang.String srcCatFullPath,
java.lang.String destCatFullPath)
"*.cat" indicates a binary file, "*.cat.xml" indicates an XML file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||