E - the target type of this marshallerpublic class ExceptionMarshaller<E extends Throwable> extends Object implements ProtoStreamMarshaller<E>
| Constructor and Description |
|---|
ExceptionMarshaller(Class<E> exceptionClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends E> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
E |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
E exception)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writepublic Class<? extends E> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<E extends Throwable>getJavaClass in interface Marshallable<E extends Throwable>public E readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<E extends Throwable>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, E exception) throws IOException
MarshallablewriteTo in interface Marshallable<E extends Throwable>writer - a ProtoStream writerexception - the object to be writtenIOException - if the object could not be writtenCopyright © 2021 JBoss by Red Hat. All rights reserved.