Package org.compiere.impexp
Class OFX1ToXML
java.lang.Object
java.io.InputStream
org.compiere.impexp.OFX1ToXML
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
Covert OFX 1XX (SQGML) into valid XML.
SGML BASED OFX 1 compliant data is read from the BufferedReader passed to init. This class extends InputStream, allowing the XML compliant output data to be read from it.
- Version:
- $Id: OFX1ToXML.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Maarten Klinker
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for OFX1ToXMLOFX1ToXML(InputStream is) Constructor for OFX1ToXML -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(BufferedReader br) Method initintread()Method readintread(char[] cbuf, int off, int len) Method readvoidrun()Method runstatic final StringxmlEncodeTextAsPCDATA(String text) Encodes strings for XMLMethods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
OFX1ToXML
Constructor for OFX1ToXML- Parameters:
is- InputStream- Throws:
IOException
-
OFX1ToXML
Constructor for OFX1ToXML- Parameters:
br- BufferedReader- Throws:
IOException
-
-
Method Details
-
init
Method init- Parameters:
br- BufferedReader- Throws:
IOException
-
run
public void run()Method run -
read
Method read- Specified by:
readin classInputStream- Returns:
- int
- Throws:
IOException
-
read
Method read- Parameters:
cbuf- char[]off- intlen- int- Returns:
- int
- Throws:
IOException
-
xmlEncodeTextAsPCDATA
Encodes strings for XML- Parameters:
text- text- Returns:
- string
-