xpfileinputstream.java
来自「kaffe Java 解释器语言,源码,Java的子集系统,开放源代码」· Java 代码 · 共 44 行
JAVA
44 行
/* Class : XPFileInputStream This is a cross platform version of the java.io.FileInputStream class. It uses the XPFile class to do cross platform file name conversion. Copyright : Moses DeJong, dejong@cs.umn.edu, 1998. Source code licensed under the GPL. You can get a copy of the license from www.gnu.org. This code is intended for use in the Kaffe project but you can use it in other projects as long as you follow the license rules.*/package kaffe.tools.jar;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.File;import java.io.FileDescriptor;public class XPFileInputStream extends FileInputStream { public XPFileInputStream(String fileName) throws FileNotFoundException { super( new XPFile(fileName) ); } public XPFileInputStream(XPFile xpfile) throws FileNotFoundException { super( xpfile ); } public XPFileInputStream(File file) throws FileNotFoundException { super( file.getPath() ); } public XPFileInputStream(FileDescriptor fd) { super( fd ); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?