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 void
close()
static java.lang.String
marshal(GenericRecord record)
static java.lang.String
marshal(GenericRecord record, boolean withComments)
void
setWithComments(boolean withComments)
void
write(GenericRecord record)
void
writeError(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
write
public void write(GenericRecord record)
-
writeError
public void writeError(java.lang.String errorMsg)
-
-