T
- the type of object to be returned as a result of deserialization.public interface Deserializer<T>
Deserializer
is able to convert serialized byte streams into Java objects.Modifier and Type | Method and Description |
---|---|
T |
deserialize(byte[] bytes)
Deprecated.
since 0.12.0 in favor of
deserialize(Reader) |
T |
deserialize(Reader reader)
Reads the specified character stream and returns the corresponding Java object.
|
@Deprecated T deserialize(byte[] bytes) throws DeserializationException
deserialize(Reader)
bytes
- the formatted data byte array to convertDeserializationException
- if there is a problem converting the byte array to an object.T deserialize(Reader reader) throws DeserializationException
reader
- the reader to use to read the character streamDeserializationException
- if there is a problem reading the stream or creating the expected Java objectCopyright © 2014–2024 jsonwebtoken.io. All rights reserved.