Package org.apache.poi.util
Class GenericRecordJsonWriter
java.lang.Object
org.apache.poi.util.GenericRecordJsonWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionGenericRecordJsonWriter(File fileName) GenericRecordJsonWriter(Appendable buffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static Stringmarshal(GenericRecord record) static Stringmarshal(GenericRecord record, boolean withComments) voidsetWithComments(boolean withComments) voidwrite(GenericRecord record) voidwriteError(String errorMsg)
-
Constructor Details
-
GenericRecordJsonWriter
- Throws:
IOException
-
GenericRecordJsonWriter
-
-
Method Details
-
marshal
-
marshal
-
setWithComments
public void setWithComments(boolean withComments) -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
write
-
writeError
-