Package org.compiere.impexp
Class OFX1ToXML
- java.lang.Object
-
- java.io.InputStream
-
- org.compiere.impexp.OFX1ToXML
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
public final class OFX1ToXML extends InputStream implements 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 InputSream, 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
Constructors Constructor Description OFX1ToXML(BufferedReader br)
Constructor for OFX1ToXMLOFX1ToXML(InputStream is)
Constructor for OFX1ToXML
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(BufferedReader br)
Method initint
read()
Method readint
read(char[] cbuf, int off, int len)
Method readvoid
run()
Method runstatic String
xmlEncodeTextAsPCDATA(String text)
Encodes strings for XML-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
OFX1ToXML
public OFX1ToXML(InputStream is) throws IOException
Constructor for OFX1ToXML- Parameters:
is
- InputStream- Throws:
IOException
-
OFX1ToXML
public OFX1ToXML(BufferedReader br) throws IOException
Constructor for OFX1ToXML- Parameters:
br
- BufferedReader- Throws:
IOException
-
-
Method Detail
-
init
public void init(BufferedReader br) throws IOException
Method init- Parameters:
br
- BufferedReader- Throws:
IOException
-
run
public void run()
Method run- Specified by:
run
in interfaceRunnable
- See Also:
Runnable.run()
-
read
public int read() throws IOException
Method read- Specified by:
read
in classInputStream
- Returns:
- int
- Throws:
IOException
-
read
public int read(char[] cbuf, int off, int len) throws IOException
Method read- Parameters:
cbuf
- char[]off
- intlen
- int- Returns:
- int
- Throws:
IOException
-
-