1 public class FileOutputStream {
4 public FileOutputStream(String pathname) {
5 fd=nativeOpen(pathname.getBytes());
8 public FileOutputStream(String pathname, int mode) {
10 fd=nativeAppend(pathname.getBytes());
12 fd=nativeOpen(pathname.getBytes());
16 public FileOutputStream(File path) {
17 fd=nativeOpen(path.getPath().getBytes());
20 private static native int nativeOpen(byte[] filename);
21 private static native int nativeAppend(byte[] filename);
22 private static native void nativeWrite(int fd, byte[] array);
23 private static native void nativeClose(int fd);
24 private static native void nativeFlush(int fd);
26 public void write(int ch) {
32 public void write(byte[] b) {