欢迎使用CSDN-markdown编辑器

来源:互联网 发布:linux stat struct 编辑:程序博客网 时间:2024/04/24 17:13

JAVA 的 IO操作相关API

io中主要api

  • File
    |—增,创,设
    |—File(String pathname)
    • createNewFile() - boolean
    • mkdir()
    • mkdirs()
      |—删,取,截
    • delete()- boolean
    • list() -String[] ??
    • listFiles() - File[]读取子项
      |—查
    • getName() -str
    • getPath()-str
    • lastModified() -long
    • length() -long
      |—判
    • canRead()
    • canWrite()
    • isDirectory()
    • isFile()
    • exists()
    • isHidden()