Class File

Object
   |
   +--File

class File


Class implementing basic support for files
Defined in file.js


Field Summary
 Object name
          
 
Constructor Summary
File(<String> name)
            Create a reference to a file system object (file or directory)
 
Method Summary
 void close()
           Close streams associated with file
 String getAbsolutePath(<Number> mode)
           Return absolute path
 File getParentFile()
           Return the parent file of this file object
 String[] list()
           Return list of files contained in the directory referenced by the File object
 ByteString readAllAsBinary()
           Read complete file into ByteString object
 String readAllAsString(encoding)
           Read complete file into String object
 void writeAll(<Object> obj, encoding)
           Write the object to file
<static> void test()
          

Field Detail

name

Object name

Constructor Detail

File

File(<String> name)

Method Detail

close

void close()

getAbsolutePath

String getAbsolutePath(<Number> mode)

getParentFile

File getParentFile()

list

String[] list()

readAllAsBinary

ByteString readAllAsBinary()

readAllAsString

String readAllAsString(encoding)

writeAll

void writeAll(<Object> obj, encoding)

test

<static> void test()


Documentation generated by JSDoc on Tue Apr 15 22:10:49 2025