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