Class CfFileReader
java.lang.Object
fr.esrf.tangoatk.widget.util.chart.CfFileReader
A class to parse configuration file
- Author:
- JL Pons
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected charprotected FileReaderprotected Vector<CfFileReader.Item>protected BufferedReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleaneof()protected chargetNames()Return all parameter names found in the config file.Return parameter value, one parameter can have multiple fields seperated by a colon.static voidprotected booleanparse()booleanParse the given string and fill property vector.booleanParse the given file and fill property vector.booleanParse the given file and fill property vector.booleanreadStream(BufferedReader stream) protected StringreadWord()
-
Field Details
-
prop
-
file
-
cfStr
-
currentChar
protected char currentChar -
stream
-
-
Constructor Details
-
CfFileReader
public CfFileReader()
-
-
Method Details
-
getCurrentChar
- Throws:
IOException
-
eof
- Throws:
IOException
-
readWord
- Throws:
IOException
-
parse
- Throws:
IOException
-
parseText
Parse the given string and fill property vector.- Parameters:
text- String containing text to parse- Returns:
- Return true when text succesfully parsed
-
readFile
Parse the given file and fill property vector.- Parameters:
filename- File to parse- Returns:
- Return true when file succesfully parsed
-
readFile
Parse the given file and fill property vector.- Parameters:
file- File to parse- Returns:
- Return true when file successfully parsed
-
readStream
-
getNames
Return all parameter names found in the config file.- Returns:
- Returns a vector of String.
-
getParam
Return parameter value, one parameter can have multiple fields seperated by a colon.- Parameters:
name- Parameter name- Returns:
- Returns a vector of String. (1 string per field)
-
main
-