-
单字节读取不适合大文件,效率很低。 批量读取适合大文件,效率比较高,也是我们最常用的读文件的方式。查看全部
-
FileInputStream(File file) Creates a FileInputStream by opening a connection to an actual file, the file named by the File object file in the file system. FileInputStream(FileDescriptor fdObj) Creates a FileInputStream by using the file descriptor fdObj, which represents an existing connection to an actual file in the file system. FileInputStream(String name) Creates a FileInputStream by opening a connection to an actual file, the file named by the path name name in the file system.查看全部
-
boolean exists() Tests whether the file or directory denoted by this abstract pathname exists. boolean isDirectory() Tests whether the file denoted by this abstract pathname is a directory. boolean isFile() Tests whether the file denoted by this abstract pathname is a normal file. long length() Returns the length of the file denoted by this abstract pathname. String[] list() Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname. File[] listFiles() Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname.查看全部
-
对象的序列化和反序列化查看全部
-
序列化的继承查看全部
-
transient关键字及分析ArrayList源码查看全部
-
序列化与反序列化查看全部
-
字符流查看全部
-
files目录操作查看全部
-
Java.io,File类用于表示文件或目录,只能用于文件或目录的信息,如名称,大小等,不能用于文件内容的访问。查看全部
-
randomAccessFile 可已访问文件的任意位子,每次读取8个字节查看全部
-
当你的字节序列是某种编码方式,这个时候想把字节序列变成字符串,也需要用这种编码方式,否则会出现乱码。查看全部
-
截图内容查看全部
-
学习目录查看全部
-
0xff的作用查看全部
举报
0/150
提交
取消