@ Override public ReadStream < Buffer > handler ( Handler < Buffer > handler ) { if ( handler == null ) { throw new IllegalArgumentException ( "handler" ) ; } this . dataHandler = handler ; doRead ( ) ; return this ; }
Set a data handler . As data is read the handler will be called with the data .