Class CustomObjectInputStream

  • All Implemented Interfaces:
    Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

    public final class CustomObjectInputStream
    extends ObjectInputStream
    Custom subclass of ObjectInputStream that loads from the class loader for this web application. This allows classes defined only with the web application to be found correctly.
    Version:
    $Revision: 1.2 $, $Date: 2005/12/08 01:28:15 $
    Author:
    Craig R. McClanahan, Bip Thelin
    • Constructor Detail

      • CustomObjectInputStream

        public CustomObjectInputStream​(InputStream stream,
                                       ClassLoader classLoader)
                                throws IOException
        Construct a new instance of CustomObjectInputStream
        Parameters:
        stream - The input stream we will read from
        classLoader - The class loader used to instantiate objects
        Throws:
        IOException - if an input/output error occurs