public void deleteParts ( ) { if ( ! _parsed ) return ; Collection < Part > parts ; try { parts = getParts ( ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } MultiException err = null ; for ( Part p : parts ) { try { ( ( MultiPart ) p ) . cleanUp ( ) ; } catch ( Exception e ) { if ( err == null ) err = new MultiException ( ) ; err . add ( e ) ; } } _parts . clear ( ) ; if ( err != null ) err . ifExceptionThrowRuntime ( ) ; }
Delete any tmp storage for parts and clear out the parts list .