W3cubDocs

/Haxe Java

File

package java.io

implements Comparable<File>, Serializable

@:libType@:javaNative@:native("java.io.File")@:javaCanonical("java.io","File") Available on java

Constructor

@:overload new (param1:URI)

@:overload new (param1:String)

@:overload new (param1:String, param2:String)

@:overload new (param1:File, param2:String)

Methods

@:overload canExecute ():Bool

@:overload canRead ():Bool

@:overload canWrite ():Bool

@:overload compareTo (param1:Dynamic):Int

@:overload compareTo (param1:File):Int

@:overload @:throws("java.io.IOException") createNewFile ():Bool

@:overload delete ():Bool

@:overload deleteOnExit ():Void

@:overload equals (param1:Dynamic):Bool

@:overload exists ():Bool

@:overload getAbsoluteFile ():File

@:overload getAbsolutePath ():String

@:overload @:throws("java.io.IOException") getCanonicalFile ():File

@:overload @:throws("java.io.IOException") getCanonicalPath ():String

@:overload getFreeSpace ():Int64

@:overload getName ():String

@:overload getParent ():String

@:overload getParentFile ():File

@:overload getPath ():String

@:overload getTotalSpace ():Int64

@:overload getUsableSpace ():Int64

@:overload hashCode ():Int

@:overload isAbsolute ():Bool

@:overload isDirectory ():Bool

@:overload isFile ():Bool

@:overload isHidden ():Bool

@:overload lastModified ():Int64

@:overload length ():Int64

@:overload list (param1:FilenameFilter):NativeArray<String>

@:overload list ():NativeArray<String>

@:overload listFiles (param1:FileFilter):NativeArray<File>

@:overload listFiles ():NativeArray<File>

@:overload listFiles (param1:FilenameFilter):NativeArray<File>

@:overload mkdir ():Bool

@:overload mkdirs ():Bool

@:overload renameTo (param1:File):Bool

@:overload setExecutable (param1:Bool):Bool

@:overload setExecutable (param1:Bool, param2:Bool):Bool

@:overload setLastModified (param1:Int64):Bool

@:overload setReadOnly ():Bool

@:overload setReadable (param1:Bool):Bool

@:overload setReadable (param1:Bool, param2:Bool):Bool

@:overload setWritable (param1:Bool):Bool

@:overload setWritable (param1:Bool, param2:Bool):Bool

@:overload toPath ():Path

@:overload toString ():String

@:overload toURI ():URI

@:overload @:throws("java.net.MalformedURLException") toURL ():URL

Deprecated:

Static variables

@:final static pathSeparator:String

@:final static pathSeparatorChar:Char16

@:final static separator:String

@:final static separatorChar:Char16

Static methods

@:overload @:throws("java.io.IOException") static createTempFile (param1:String, param2:String):File

@:overload @:throws("java.io.IOException") static createTempFile (param1:String, param2:String, param3:File):File

@:overload static listRoots ():NativeArray<File>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/java/io/File.html