private static native int nativeAppend(byte[] filename);
private static native void nativeWrite(int fd, byte[] array);
private static native void nativeClose(int fd);
+ private static native void nativeFlush(int fd);
public void write(int ch) {
byte b[]=new byte[1];
nativeWrite(fd, b);
}
+ public void flush() {
+ nativeFlush(fd);
+ }
+
public void close() {
nativeClose(fd);
}
close(fd);
}
+void ___FileOutputStream______nativeFlush____I(int fd) {
+ fsync(fd);
+}
+
int ___FileOutputStream______nativeOpen_____AR_B(struct ArrayObject * ao) {
int length=ao->___length___;
char* filename= (((char *)& ao->___length___)+sizeof(int));