com.partnersoft.cog
Class CogXmlWriter
java.lang.Object
com.partnersoft.cog.CogXmlWriter
public class CogXmlWriter
- extends java.lang.Object
Writes out Cogs as XML.
You might as well use the methods in CogXmlLib, since any usage of CogXmlWriter will pretty much be the same three lines - construct, write, close.
Copyright 2003-2009 Partner Software, Inc.
- Version:
- $Id: CogXmlWriter.java 2474 2010-03-13 14:28:43Z paul $
- Author:
- Paul Reavis
|
Method Summary |
void |
close()
|
boolean |
isCompact()
If compact is true, no extra newlines or spaces are added to the XML. |
void |
setCompact(boolean isCompact)
|
void |
writeCog(Cog cog)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CogXmlWriter
public CogXmlWriter(VfsFile outputFile)
throws java.io.IOException
- Throws:
java.io.IOException
CogXmlWriter
public CogXmlWriter(java.io.File outputFile)
throws java.io.IOException
- Throws:
java.io.IOException
CogXmlWriter
public CogXmlWriter(java.io.Writer writer)
throws java.io.IOException
- Throws:
java.io.IOException
writeCog
public void writeCog(Cog cog)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
isCompact
public boolean isCompact()
- If compact is true, no extra newlines or spaces are added to the XML.
setCompact
public void setCompact(boolean isCompact)