Added setInput(..)-methods to writers and readers in java