@ CheckReturnValue public MessageAction clearFiles ( BiConsumer < String , InputStream > finalizer ) { Checks . notNull ( finalizer , "Finalizer" ) ; for ( Iterator < Map . Entry < String , InputStream > > it = files . entrySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { Map . Entry < String , InputStream > entry = it . next ( ) ; finalizer . accept ( entry . getKey ( ) , entry . getValue ( ) ) ; it . remove ( ) ; } clearResources ( ) ; return this ; }
Clears all previously added files