public static interface JavaBinCodec.ObjectResolver
JavaBinCodec to support serialization of arbitrary data types.
Implementors of this interface write a method to serialize a given object using an existing JavaBinCodec
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
resolve(Object o,
JavaBinCodec codec)
Examine and attempt to serialize the given object, using a
JavaBinCodec to write it to a stream. |
Object resolve(Object o, JavaBinCodec codec) throws IOException
JavaBinCodec to write it to a stream.o - the object that the caller wants serialized.codec - used to actually serialize o.o itself if it could not be serialized, or null if the whole object was successfully serialized.IOExceptionJavaBinCodecCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.