BrightSide Workbench Full Report + Source Code
org.turro.file.PropertiesFile Class Reference

Public Member Functions

 PropertiesFile (File file)
 
Properties getProperties () throws FileNotFoundException, IOException
 

Static Public Attributes

static final String FILES_PROPERTIES_FILE = ".files.properties"
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file PropertiesFile.java.

Constructor & Destructor Documentation

◆ PropertiesFile()

org.turro.file.PropertiesFile.PropertiesFile ( File  file)

Definition at line 40 of file PropertiesFile.java.

40  {
41  this.file = file;
42  }

Member Function Documentation

◆ getProperties()

Properties org.turro.file.PropertiesFile.getProperties ( ) throws FileNotFoundException, IOException

Definition at line 44 of file PropertiesFile.java.

44  {
45  if(props == null) {
46  props = new Properties();
47  if(file.isDirectory()) {
48  loadProperties(props, file.getAbsolutePath());
49  } else {
50  String parentPath = getParentPath(file.getAbsolutePath());
51  if(parentPath != null) {
52  loadProperties(props, parentPath);
53  }
54  }
55  }
56  return props;
57  }
Here is the caller graph for this function:

Member Data Documentation

◆ FILES_PROPERTIES_FILE

final String org.turro.file.PropertiesFile.FILES_PROPERTIES_FILE = ".files.properties"
static

Definition at line 35 of file PropertiesFile.java.


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