private final void freeByteArrayStream ( ByteArrayOutputStream baos ) { // If the pool is not full, then add to the pool. Note that this must // be synchronized, as multiple threads may access the pool. d175235 synchronized ( svBAOSs ) { if ( svBAOSsSize < svBAOSs . length ) { svBAOSs [ svBAOSsSize ] = baos ; ++ svBAOSsSize ; } } }
Return the input ByteArrayOutputStream back to the pool .