public byte [ ] getInData ( int hashCode ) { if ( inStream != null && ( hashCode == - 1 || hashCode == inHashCode ) ) { try { inStream . close ( ) ; } catch ( IOException e ) { log . severe ( "Failed to close in data stream: " + e ) ; } byte [ ] b = inStream . toByteArray ( ) ; inStream = null ; return b ; } return null ; }
This method returns the data associated with the in buffer and resets the buffer to be inactive .