Class ResolvingObjectInputStream

    • Constructor Detail

      • ResolvingObjectInputStream

        public ResolvingObjectInputStream​(InputStream stream,
                                          ClassLoader loader)
                                   throws IOException
        Create an ObjectInputStream that reads from the specified InputStream using the specified ClassLoader to resolve classes.
        Parameters:
        stream - the underlying InputStream from which to read
        loader - the ClassLoader to use for class resolution
        Throws:
        IOException - if an exception occurred in the underlying stream.
        See Also:
        ObjectInputStream