Code example:
BufferedOutputStream bos = null
bos = new BufferedOutputStream(new FileOutputStream("/Desktop/test.txt",true);
byte[] dataPacket;
dataPacket = new byte[]{-128, 10};
bos.write(dataPacket, 0, dataPacket.length);
bos.flush();
bos.close();
Output display in test.txt: '\80' (not the output display desired. Want '[-128, 10]' to be displayed when opening output file).