pdk.util.File
contains functions to operate with File objects
Functions
getMetaType
Gets a meta type of a File.
Arguments:
file :: pdk.io.File
Result:
output :: pdk.core.String - mime type
Possible exceptions
NullPointerException - throws if the file argument is
NULL
getName
Gets a name of a File.
Arguments:
file :: pdk.io.File
Result:
output :: pdk.core.String - name of the file
Possible exceptions
NullPointerException - throws if the file argument is
NULL
getSize
Gets a size in bytes of a File.
Arguments:
file :: pdk.io.File
Result:
output :: pdk.core.Integer - size in bytes
Possible exceptions
NullPointerException - throws if the file argument is
NULL
toByteArray (deprecated)
Returns a byte array as a sequence of bytes that represents the contents of the File.
Arguments:
file :: pdk.io.File
Result:
output :: pdk.core.Array<pdk.core.Byte>
Possible exceptions
NullPointerException - throws if the file argument is
NULL
Last updated