ObjectDecoderInputStream
"이희승 (Trustin Lee)"
trustin at gmail.com
Thu Jul 23 22:35:07 EDT 2009
On 07/23/2009 04:15 AM, Michael McGrady wrote:
> Why does ObjectDecoderInputStream not just extend ObjectInputStream
> rather than extend InputStream and implement ObjectInput? The
> solution to the ObjectInputStream ClassLoader issues in
> ObjectDecoderInputStream then would be available for use as an
> ObjectInputStream, right?
It is because many methods in ObjectInputStream are defined as 'final',
making overriding the original behavior very difficult. It would have
been nicer if it was less strict. :-(
A user needs to use ObjectInput/Output rather than
ObjectInput/OutputStream if he or she wants pluggability in object
serialization.
HTH,
Trustin
More information about the netty-users
mailing list