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
ConstructorDescriptionConstructor for OFX1ToXMLOFX1ToXML
(InputStream is) Constructor for OFX1ToXML -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(BufferedReader br) Method initint
read()
Method readint
read
(char[] cbuf, int off, int len) Method readvoid
run()
Method runstatic final String
xmlEncodeTextAsPCDATA
(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:
read
in 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
-