Package org.apache.poi.util
Class GenericRecordXmlWriter
- java.lang.Object
-
- org.apache.poi.util.GenericRecordXmlWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class GenericRecordXmlWriter extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description GenericRecordXmlWriter(java.io.File fileName)GenericRecordXmlWriter(java.lang.Appendable buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static java.lang.Stringmarshal(GenericRecord record)static java.lang.Stringmarshal(GenericRecord record, boolean withComments)voidsetWithComments(boolean withComments)voidwrite(GenericRecord record)voidwriteError(java.lang.String errorMsg)
-
-
-
Method Detail
-
marshal
public static java.lang.String marshal(GenericRecord record)
-
marshal
public static java.lang.String marshal(GenericRecord record, boolean withComments)
-
setWithComments
public void setWithComments(boolean withComments)
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
write
public void write(GenericRecord record)
-
writeError
public void writeError(java.lang.String errorMsg)
-
-