|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ofx4j.io.v1.OFXV1Writer
public class OFXV1Writer
OFX writer to SGML, suitable for OFX versions < 2.0.
Field Summary | |
---|---|
protected boolean |
headersWritten
|
protected java.io.Writer |
writer
|
Constructor Summary | |
---|---|
OFXV1Writer(java.io.OutputStream out)
|
|
OFXV1Writer(java.io.Writer writer)
|
Method Summary | |
---|---|
void |
close()
Close this OFX writer. |
void |
flush()
|
boolean |
isWriteAttributesOnNewLine()
|
protected java.io.OutputStreamWriter |
newWriter(java.io.OutputStream out)
|
protected void |
print(char ch)
|
protected void |
print(java.lang.String line)
|
protected void |
println()
|
protected void |
println(java.lang.String line)
|
void |
setWriteAttributesOnNewLine(boolean writeAttributesOnNewLine)
|
void |
writeElement(java.lang.String name,
java.lang.String value)
Write an element to the current aggregate. |
void |
writeEndAggregate(java.lang.String aggregateName)
Write the end of an aggregate. |
void |
writeHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
Write the specified headers. |
void |
writeStartAggregate(java.lang.String aggregateName)
Write the start of a new aggregate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean headersWritten
protected final java.io.Writer writer
Constructor Detail |
---|
public OFXV1Writer(java.io.OutputStream out)
public OFXV1Writer(java.io.Writer writer)
Method Detail |
---|
protected java.io.OutputStreamWriter newWriter(java.io.OutputStream out) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void writeHeaders(java.util.Map<java.lang.String,java.lang.String> headers) throws java.io.IOException
OFXWriter
writeHeaders
in interface OFXWriter
headers
- The headers to be written.
java.io.IOException
public void writeStartAggregate(java.lang.String aggregateName) throws java.io.IOException
OFXWriter
writeStartAggregate
in interface OFXWriter
aggregateName
- The aggregate name.
java.io.IOException
public void writeElement(java.lang.String name, java.lang.String value) throws java.io.IOException
OFXWriter
writeElement
in interface OFXWriter
name
- The name of the element.value
- The value of the element.
java.io.IOException
public void writeEndAggregate(java.lang.String aggregateName) throws java.io.IOException
OFXWriter
writeEndAggregate
in interface OFXWriter
aggregateName
- The aggregate name.
java.io.IOException
public boolean isWriteAttributesOnNewLine()
public void setWriteAttributesOnNewLine(boolean writeAttributesOnNewLine)
public void close() throws java.io.IOException
OFXWriter
close
in interface OFXWriter
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
protected void println(java.lang.String line) throws java.io.IOException
java.io.IOException
protected void println() throws java.io.IOException
java.io.IOException
protected void print(java.lang.String line) throws java.io.IOException
java.io.IOException
protected void print(char ch) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |