I would consider this more of a native level job, which may be handled via the JNI. However, depending on the operating system that you're using, all you may need to do is create a FileOutputStream....