Class ExternalizableHelper.DefaultObjectStreamFactory

    • Constructor Detail

      • DefaultObjectStreamFactory

        public DefaultObjectStreamFactory()
    • Method Detail

      • getObjectInput

        public ObjectInput getObjectInput​(DataInput in,
                                          ClassLoader loader,
                                          boolean fForceNew)
                                   throws IOException
        Obtain an ObjectInput based on the passed DataInput.
        Specified by:
        getObjectInput in interface ObjectStreamFactory
        Parameters:
        in - the DataInput to be wrapped
        loader - the ClassLoader to be used
        fForceNew - if true, a new ObjectInput must be returned; otherwise, if the passed stream is already an ObjectInput, it's allowed to be returned instead
        Returns:
        an ObjectInput that delegates to ("wraps") the passed DataInput
        Throws:
        IOException - if an I/O exception occurs