ByteArrayUtil { public static byte[] readDataFromInputStream(final int maxResultSize, final InputStream is) throws IOException { final byte[] tempResultBuffer = new byte[maxResultSize]; int len = 0; do { if (len >= tempResultBuffer.length) { break; } final int lastLen = is.read(tempResultBuffer, len, tempResultBuffer.length - len); if (lastLen < 0) { break; } len += lastLen; } while (true); final byte[] result = new byte[len]; System.arraycopy(tempResultBuffer, 0, result, 0, len); return result; }  static String showAsString(final byte[] byteArray); static String showAsStringDetails(final byte[] byteArray); static byte[] getByteArray(int... bytes); static byte[] getByteArray(final String prefixStr,
			final int numOfBytesInTheMiddle, final String suffixStr); static char asChar(final byte b); static String asCharDetail(final byte b); static byte[] readDataFromInputStream(final int maxResultSize,
			final InputStream is); static byte[] concatByteArrays(final byte[]... input);  }
@Test(enabled = false) public void testReadDataFromInputStream() { fail("Not yet implemented"); }