Java:File
De W3API
Contenido |
[editar] Descripción
File es la representación abstracta del path de un fichero o un directorio.
[editar] Sintaxis
[editar] Ejemplo
File f = new File("fichero.txt");
[editar] Campos
[editar] Constructores
[editar] Métodos
- canRead()
- canWrite()
- canRead()
- canWrite()
- compareTo()
- createNewFile()
- createTempFile()
- delete()
- deleteOnExit()
- equals()
- exists()
- getAbsoluteFile()
- getAbsolutePath()
- getCanonicalFile()
- getCanonicalPath()
- getName()
- getParent()
- getParentFile()
- getPath()
- hashCode()
- isAbsolute()
- isDirectory()
- isFile()
- isHidden()
- lastModified()
- length()
- list()
- listFiles()
- listRoots()
- mkdir()
- mkdirs()
- renameTo()
- setLastModified()
- setReadOnly()
- toString()
- toURI()
- toURL()