Open Kilda Java Documentation
org.openkilda.wfm.topology.utils.FileUtil Class Reference
Inheritance diagram for org.openkilda.wfm.topology.utils.FileUtil:

Public Member Functions

FileUtil withDir (File dir)
 
FileUtil withFileName (String fileName)
 
File getFile ()
 
boolean append (String text)
 
int numLines ()
 

Public Attributes

File dir = Files.createTempDir()
 
String fileName = "temp.txt"
 

Detailed Description

Simple File Utility class .. centered around appending and counting and things like that.

Definition at line 28 of file FileUtil.java.

Member Function Documentation

◆ append()

boolean org.openkilda.wfm.topology.utils.FileUtil.append ( String  text)

Append the text. If an exception occurs, dump the text and return false.

Returns
true if append worked, false otherwise.

Definition at line 57 of file FileUtil.java.

◆ getFile()

File org.openkilda.wfm.topology.utils.FileUtil.getFile ( )

Definition at line 44 of file FileUtil.java.

◆ numLines()

int org.openkilda.wfm.topology.utils.FileUtil.numLines ( )
Returns
the actual number, or -1 if there was an exception.

Definition at line 73 of file FileUtil.java.

◆ withDir()

FileUtil org.openkilda.wfm.topology.utils.FileUtil.withDir ( File  dir)

Definition at line 34 of file FileUtil.java.

◆ withFileName()

FileUtil org.openkilda.wfm.topology.utils.FileUtil.withFileName ( String  fileName)

Definition at line 39 of file FileUtil.java.

Member Data Documentation

◆ dir

File org.openkilda.wfm.topology.utils.FileUtil.dir = Files.createTempDir()

Definition at line 30 of file FileUtil.java.

◆ fileName

String org.openkilda.wfm.topology.utils.FileUtil.fileName = "temp.txt"

Definition at line 31 of file FileUtil.java.


The documentation for this class was generated from the following file: