question: public int read ( byte [ ] buf , int off , int len ) throws TTransportException { if ( inputStream_ == null ) { throw new TTransportException ( TTransportException . NOT_OPEN , "Cannot read from null inputStream" ) ; } int bytesRead ; try { bytesRead = inputStream_ . read ( buf , off , len ) ; } catch ( IOException iox ) { throw new TTransportException ( TTransportException . UNKNOWN , iox ) ; } if ( bytesRead < 0 ) { throw new TTransportException ( TTransportException . END_OF_FILE ) ; } return bytesRead ; }
target:  Reads from the underlying input stream if not null.