novah.io
function for working with IO
Types
FileOpenOption
visibility: public+
constructors: Read, Write, Append, TruncateExisting, Create, CreateNew, DeleteOnClose, Sparse, Sync, Dsync
Possible file open options.
Look at java.nio.file.StandardOpenOption
for more information.
Declarations
Read
visibility: public
type: FileOpenOption
Write
visibility: public
type: FileOpenOption
Append
visibility: public
type: FileOpenOption
TruncateExisting
visibility: public
type: FileOpenOption
Create
visibility: public
type: FileOpenOption
CreateNew
visibility: public
type: FileOpenOption
DeleteOnClose
visibility: public
type: FileOpenOption
Sparse
visibility: public
type: FileOpenOption
Sync
visibility: public
type: FileOpenOption
Dsync
visibility: public
type: FileOpenOption
utf8
visibility: public
type: Charset
The UTF-8 charset.
newFile
visibility: public
type: String -> File
Creates a new file from the specified path.
child
visibility: public
type: File -> String -> File
Returns a file which represents a child of the given directory.
pathOf
visibility: public
type: String -> List String -> Path
Returns a path by joining the first path with the list of paths using the platform separator.
fileToPath
visibility: public
type: File -> Path
Returns the path of this file.
fopToOp
visibility: private
type: FileOpenOption -> StandardOpenOption
readTextFromPath
visibility: public
type: Path -> String
Reads the contents of the file using the UTF-8 charset.
readTextWithCharset
visibility: public
type: Path -> Charset -> String
Reads the contents of the file using the given charset.
readText
visibility: public
type: File -> String
Reads the contents of this file using the UTF-8 charset.
writeTextToPath
visibility: public
type: Path -> String -> Charset -> List FileOpenOption -> Path
Writes the given string to the specified path using the given charset. Returns the path.
writeText
visibility: public
type: File -> String -> Path
Writes the given string to the specified file using the UTF-8 charset. Returns the path.
appendText
visibility: public
type: File -> String -> Path
Appends the given string to the specified file using the UTF-8 charset. Returns the path.