Package gov.nasa.pds.registry.common.dd
Class DDNJsonWriter
java.lang.Object
gov.nasa.pds.registry.common.util.json.BaseNJsonWriter<DDRecord>
gov.nasa.pds.registry.common.dd.DDNJsonWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
NJSON (new-line delimited JSON) writer for data dictionary records.
- Author:
- karpenko
-
Field Summary
Fields inherited from class gov.nasa.pds.registry.common.util.json.BaseNJsonWriter
action, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteDataRecord(com.google.gson.stream.JsonWriter jw, DDRecord data) Write one data record.
-
Constructor Details
-
DDNJsonWriter
Constructor- Parameters:
file- output file- Throws:
Exception- an exception
-
-
Method Details
-
writeDataRecord
Write one data record.- Specified by:
writeDataRecordin classBaseNJsonWriter<DDRecord>- Parameters:
jw- JSON writerdata- a record- Throws:
Exception- an exception
-