outputfile.java

来自「北大Java 语言程序设计 ppt课件及源码」· Java 代码 · 共 23 行

JAVA
23
字号
public class OutputFile extends File {    static {        try {            System.loadLibrary("file");        } catch (UnsatisfiedLinkError e) {            System.err.println("can't find your library");            System.exit(-1);        }    }    protected int fd;    public OutputFile(String path) {        super(path);    }    public native boolean open();    public native void close();    public native int write(byte[] b, int len);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?