|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.util.RecordSetWriter
public class RecordSetWriter
Class for streaming a RecordSet to an OutputStream in XML as records are being added. User: Randy Wilson Date: 12/4/13
| Constructor Summary | |
|---|---|
|
RecordSetWriter(OutputStream outputStream)
Constructor. |
protected |
RecordSetWriter(OutputStream outputStream,
boolean shouldFilter)
Constructor. |
| Method Summary | |
|---|---|
void |
close()
Finish writing the file, including metadata (if set), and the closing tag. |
void |
setMetadata(Gedcomx metadata)
Set the 'metadata' document, which will be written after all of the records. |
void |
writeRecord(Gedcomx record)
Write the given record to the underlying byte-level (and possibly GZipped) output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordSetWriter(OutputStream outputStream)
outputStream - - OutputStream to write XML to.
protected RecordSetWriter(OutputStream outputStream,
boolean shouldFilter)
outputStream - - OutputStream to write XML to.shouldFilter - - Flag for whether to use a CleanXMLStreamWriter to convert invalid XML characters
(such as a vertical tab) into the Unicode REPLACEMENT_CHARACTER (0xFFFD), so that
the XML will unmarshal without throwing an exception.| Method Detail |
|---|
public void writeRecord(Gedcomx record)
throws JAXBException
record - - GedcomX document to add as a 'record' to the RecordSet OutputStream.
JAXBException
public void setMetadata(Gedcomx metadata)
throws JAXBException
metadata - - GedcomX document with group-level information.
JAXBException
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||