bundles/org.tukani.xz/src/org/tukaani/xz/BasicArrayCache.java
public byte[] getByteArray(int size, boolean fillWithZeros) {
        byte[] array = getArray(byteArrayCache, size);

        if (array == null)
            array = new byte[size];
        else if (fillWithZeros)
            Arrays.fill(array, (byte)0x00);

        return array;
    }
public byte[] getByteArray(int size, boolean fillWithZeros) {
        byte[] array = getArray(byteArrayCache, size);

        if (array == null)
            array = new byte[size];
        else if (fillWithZeros)
            Arrays.fill(array, (byte)0x00);

        return array;
    }
Allocates a new byte array, hopefully reusing an existing
array from the cache.

@param       size        size of the array to allocate

@param       fillWithZeros
if true, all the elements of the returned
array will be zero; if false, the contents
of the returned array is undefined