com.netflix.astyanax.serializers.JaxbSerializer Maven / Gradle / Ivy
package com.netflix.astyanax.serializers;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
import com.netflix.astyanax.connectionpool.exceptions.SerializationException;
/**
* Serializes Objects using Jaxb. An instance of this class may only serialize
* JAXB compatible objects of classes known to its configured context.
*
* @author [email protected]
*/
public class JaxbSerializer extends AbstractSerializer