T - the type that can be converted@FunctionalInterface @PublicSpi public interface Unmarshaller<T>
bytes.
Notes:
unmarshallFrom(byte[]) for equal input byte arrays should match when
compared using the Object.equals(Object) method, but it's not a hard requirement.
| Modifier and Type | Method and Description |
|---|---|
T |
unmarshallFrom(byte[] raw)
Responsible for converting an array of bytes into an object.
|
T unmarshallFrom(byte[] raw) throws MarshallingException
raw - the array of bytes to be converted.MarshallingException - if unable to perform the conversion. Implementors should not wrap all exceptions,
like NullPointerException, with this exception. It should be used to report
specific errors related to doing the unmarshalling, such as a checked exception
like IOException.Copyright © 2021 Atlassian. All rights reserved.