net.sf.ofx4j.io.v2
Class OFXV2Writer
java.lang.Object
net.sf.ofx4j.io.v1.OFXV1Writer
net.sf.ofx4j.io.v2.OFXV2Writer
- All Implemented Interfaces:
- OFXWriter
public class OFXV2Writer
- extends OFXV1Writer
OFX writer to XML, suitable for OFX version 2.0.
- Author:
- Ryan Heaton
Method Summary |
boolean |
isWriteAttributesOnNewLine()
|
protected java.io.OutputStreamWriter |
newWriter(java.io.OutputStream out)
|
void |
writeElement(java.lang.String name,
java.lang.String value)
Write an element to the current aggregate. |
void |
writeHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Write the specified headers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OFXV2Writer
public OFXV2Writer(java.io.OutputStream out)
OFXV2Writer
public OFXV2Writer(java.io.Writer writer)
newWriter
protected java.io.OutputStreamWriter newWriter(java.io.OutputStream out)
throws java.io.UnsupportedEncodingException
- Overrides:
newWriter
in class OFXV1Writer
- Throws:
java.io.UnsupportedEncodingException
writeHeaders
public void writeHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
throws java.io.IOException
- Description copied from interface:
OFXWriter
- Write the specified headers.
- Specified by:
writeHeaders
in interface OFXWriter
- Overrides:
writeHeaders
in class OFXV1Writer
- Parameters:
headers
- The headers to be written.
- Throws:
java.io.IOException
writeElement
public void writeElement(java.lang.String name,
java.lang.String value)
throws java.io.IOException
- Description copied from interface:
OFXWriter
- Write an element to the current aggregate.
- Specified by:
writeElement
in interface OFXWriter
- Overrides:
writeElement
in class OFXV1Writer
- Parameters:
name
- The name of the element.value
- The value of the element.
- Throws:
java.io.IOException
isWriteAttributesOnNewLine
public boolean isWriteAttributesOnNewLine()
- Overrides:
isWriteAttributesOnNewLine
in class OFXV1Writer
Copyright © 2008. All Rights Reserved.