[File] io package - source code analysis

static  Private the FileSystem FileSystem.getFileSystem FS = (); // internet local file system the file system object
Private  static  enum PathStatus {INVALID, CHECKED}; // enumerated type is legitimate
File (File parent, String Child)
 // create a new File instance from a string of parents and children abstract pathname pathname. 
File (String pathname)
 // create a new File instance by the given pathname string into an abstract pathname. 
File (String parent, String Child)
 // create a new File strings from the parent pathname string and a child pathname instance. 
File (URI of the uri)
 // create a new instance of the given document file: URI into an abstract pathname.

 After re-introduce some common methods

delete () 
delete a file or directory with this abstract pathname. 
exists () 
to check whether a file or directory with the existence of this abstract pathname. 
mkdir () 
is create a directory this abstract pathname. 
getName () 
name of the file or directory returned by this abstract pathname.

 

Guess you like

Origin www.cnblogs.com/zhulu666/p/11459788.html