[java] How can I write a byte array to a file in Java?