private int getByteCount ( ArrayList < byte [ ] > listOfByteArrays ) { int count = 0 ; for ( byte [ ] byteArray : listOfByteArrays ) { if ( byteArray != null ) { count += byteArray . length ; } } return count ; }
Get the number of bytes in this list of byte arrays