public class JsonRecordSetWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_STR |
static String |
METADATA_STR |
static String |
RECORDS_STR |
| Constructor and Description |
|---|
JsonRecordSetWriter(OutputStream outputStream,
Gedcomx metadata)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finish writing the file, including metadata (if set), and the closing tag.
|
long |
getNumOfRecords() |
void |
writeRecord(Gedcomx record) |
public static final String ID_STR
public static final String METADATA_STR
public static final String RECORDS_STR
public JsonRecordSetWriter(OutputStream outputStream, Gedcomx metadata)
outputStream - - OutputStream to write the Gedcomx document to.metadata - - The metadata associated with this RecordSet. It will be written to the stream first.public void writeRecord(Gedcomx record) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic long getNumOfRecords()
Copyright © 2016. All rights reserved.