Compiere 3.1

org.compiere.impexp
Class OFX1ToXML

java.lang.Object
  extended by java.io.InputStream
      extended by org.compiere.impexp.OFX1ToXML
All Implemented Interfaces:
Closeable, 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
OFX1ToXML(BufferedReader br)
          Constructor for OFX1ToXML
OFX1ToXML(InputStream is)
          Constructor for OFX1ToXML
 
Method Summary
 void init(BufferedReader br)
          Method init
 int read()
          Method read
 int read(char[] cbuf, int off, int len)
          Method read
 void run()
          Method run
static String xmlEncodeTextAsPCDATA(String text)
          Encodes strings for XML
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface Runnable
See Also:
Runnable.run()

read

public int read()
         throws IOException
Method read

Specified by:
read in class InputStream
Returns:
int
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Method read

Parameters:
cbuf - char[]
off - int
len - int
Returns:
int
Throws:
IOException

xmlEncodeTextAsPCDATA

public static final String xmlEncodeTextAsPCDATA(String text)
Encodes strings for XML

Parameters:
text - text
Returns:
string

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.