code: public static ObjectInputStream newObjectInputStream(File file, final ClassLoader classLoader) throws IOException {
          return IOGroovyMethods.newObjectInputStream(new FileInputStream(file), classLoader);
      }
docs: Create an object input stream for this file using the given class loader.
  
  @param file        a file
  @param classLoader the class loader to use when loading the class
  @return an object input stream
  @throws IOException if an IOException occurs.
  @since 1.5.0