public static byte [ ] sub ( byte [ ] b , int off , int len ) { byte [ ] result = new byte [ len ] ; System . arraycopy ( b , off , result , 0 , len ) ; return result ; }
Truncate and keep middle part of a byte array