public static final class MediaType.MediaTypeExternalizer extends Object implements Externalizer<MediaType>
| Constructor and Description |
|---|
MediaTypeExternalizer() |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
MediaType mediaType)
Write the object reference to the stream.
|
public void writeObject(ObjectOutput output, MediaType mediaType) throws IOException
ExternalizerwriteObject in interface Externalizer<MediaType>output - the object output to write tomediaType - the object reference to writeIOException - if an I/O error occurspublic MediaType readObject(ObjectInput input) throws IOException, ClassNotFoundException
ExternalizerExternalizer.writeObject(ObjectOutput, Object) method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.readObject in interface Externalizer<MediaType>input - the object input to read fromIOException - if an I/O error occursClassNotFoundException - if a class could not be foundCopyright © 2022 JBoss by Red Hat. All rights reserved.