public class FastInfosetSerializer extends JaxbSerializer
| Constructor and Description |
|---|
FastInfosetSerializer(Class<?>... serializableClasses)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected XMLStreamReader |
createStreamReader(InputStream input)
Get a new XML stream reader.
|
protected XMLStreamWriter |
createStreamWriter(OutputStream output)
Get a new XML stream writer.
|
fromByteBuffer, toByteBuffercomputeInitialHashSize, fromBytes, fromBytesList, fromBytesMap, fromBytesSet, getComparatorType, toBytes, toBytesList, toBytesMap, toBytesSetpublic FastInfosetSerializer(Class<?>... serializableClasses)
serializableClasses - List of classes which can be serialized by this instance. Note
that concrete classes directly referenced by any class in the list
will also be serializable through this instance.protected XMLStreamWriter createStreamWriter(OutputStream output) throws XMLStreamException
createStreamWriter in class JaxbSerializeroutput - An underlying OutputStream to write to.XMLStreamWriter which writes to the specified
OutputStream. The output written by this XMLStreamWriter is
understandable by XMLStreamReaders produced by
JaxbSerializer.createStreamReader(InputStream).XMLStreamExceptionprotected XMLStreamReader createStreamReader(InputStream input) throws XMLStreamException
createStreamReader in class JaxbSerializerinput - the underlying InputStream to read from.XmlStreamReader which reads from the specified
InputStream. The reader can read anything written by
JaxbSerializer.createStreamWriter(OutputStream).XMLStreamExceptionCopyright © 2014. All Rights Reserved.