public ObjectInputStreamWithLoader(InputStream in,ClassLoader loader) throws IOException, StreamCorruptedException {
  super(in);
  if (loader == null) {
    throw new IllegalArgumentException("Illegal null argument to ObjectInputStreamWithLoader");
  }
  this.loader=loader;
}

public ObjectInputStreamWithLoader ( InputStream in , ClassLoader loader ) throws IOException , StreamCorruptedException { super ( in ) ; if ( loader == null ) { throw new IllegalArgumentException ( "Illegal null argument to ObjectInputStreamWithLoader" ) ; } this . loader = loader ; }
loader must be non - null ;
