T
- The type to wrap.@Deprecated public class JibxRepresentation<T> extends WriterRepresentation
UNKNOWN_SIZE
Constructor and Description |
---|
JibxRepresentation(MediaType mediaType,
T object)
Deprecated.
Creates a JIBX representation from an existing Java object.
|
JibxRepresentation(MediaType mediaType,
T object,
java.lang.String bindingName)
Deprecated.
Creates a JIBX representation from an existing Java object.
|
JibxRepresentation(Representation xmlRepresentation,
java.lang.Class<?> bindingClass)
Deprecated.
Creates a new JIBX representation, that can be used to convert the input
XML into a Java object.
|
JibxRepresentation(Representation xmlRepresentation,
java.lang.Class<?> bindingClass,
java.lang.String bindingName)
Deprecated.
Creates a new JIBX representation, that can be used to convert the input
XML into a Java object.
|
Modifier and Type | Method and Description |
---|---|
T |
getObject()
Deprecated.
Returns the wrapped Java object.
|
void |
setObject(T object)
Deprecated.
Sets the wrapped Java object.
|
void |
write(java.io.Writer writer)
Deprecated.
Marshals the document and writes the representation to a stream of
characters.
|
getReader
getChannel, getStream, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, release, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public JibxRepresentation(MediaType mediaType, T object)
mediaType
- The representation's media type (usually
MediaType.APPLICATION_XML or MediaType.TEXT_XML).object
- The Java object.public JibxRepresentation(MediaType mediaType, T object, java.lang.String bindingName)
mediaType
- The representation's media type (usually
MediaType.APPLICATION_XML or MediaType.TEXT_XML).object
- The Java object.bindingName
- The name of the JIBX binding to use.public JibxRepresentation(Representation xmlRepresentation, java.lang.Class<?> bindingClass)
xmlRepresentation
- The XML wrapped in a representation.bindingClass
- The Target Java class for binding.public JibxRepresentation(Representation xmlRepresentation, java.lang.Class<?> bindingClass, java.lang.String bindingName)
xmlRepresentation
- The XML wrapped in a representation.bindingClass
- The Target Java class for binding.bindingName
- The name of the JIBX binding to use.public T getObject() throws org.jibx.runtime.JiBXException, java.io.IOException
org.jibx.runtime.JiBXException
- If unmarshalling XML with JIBX fails.java.io.IOException
- If any error occurs attempting to get the stream of the
xmlRepresentation.public void setObject(T object)
object
- The Java object to set.public void write(java.io.Writer writer) throws java.io.IOException
write
in class Representation
writer
- The writer to use when writing.java.io.IOException
- If any error occurs attempting to write the stream.Copyright © 2005-2024 Restlet.