public class JaxbXmlSerialization extends Object implements GedcomxEntrySerializer, GedcomxEntryDeserializer
JAXBContext appropriate for reading and writing GEDCOM X files.| Constructor and Description |
|---|
JaxbXmlSerialization(boolean pretty,
Class<?>... classes) |
JaxbXmlSerialization(Class<?>... classes) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(InputStream in,
String mediaType)
Deserialize the resource from the specified input stream.
|
void |
serialize(Object resource,
OutputStream out)
Serialize the resource to the specified output stream.
|
String |
suggestFilenameExtension()
Suggest a filename extension for the entries of this serializer.
|
public JaxbXmlSerialization(Class<?>... classes)
public JaxbXmlSerialization(boolean pretty,
Class<?>... classes)
public Object deserialize(InputStream in, String mediaType) throws IOException
GedcomxEntryDeserializerdeserialize in interface GedcomxEntryDeserializerin - The input stream.mediaType - The media type of the input stream.IOException - a IOExceptionpublic void serialize(Object resource, OutputStream out) throws IOException
GedcomxEntrySerializerserialize in interface GedcomxEntrySerializerresource - the resource.out - the output stream.IOException - a IOExceptionpublic String suggestFilenameExtension()
GedcomxEntrySerializersuggestFilenameExtension in interface GedcomxEntrySerializerCopyright © 2024. All rights reserved.