public static void eachObject ( File self , Closure closure ) throws IOException , ClassNotFoundException { IOGroovyMethods . eachObject ( newObjectInputStream ( self ) , closure ) ; }
Iterates through the given file object by object .