TV-Browser 2.7.5 API

util.io
Class IniFileReader

java.lang.Object
  extended by util.io.IniFileReader

public class IniFileReader
extends Object

This class reads Ini-Files. Ini-Files are Property-Files with [sections] and Key=Value Text Each [Section] is loaded into an unique HashMap.


Constructor Summary
IniFileReader(File iniFile)
          Loads the Ini-File
IniFileReader(InputStream stream)
          Loads the Ini from a InputStream
 
Method Summary
 String[] getAllSections()
          Gets all available Sections in the loaded Ini-File
 HashMap<String,String> getSection(String section)
          Get a specific "Section" of the Ini-File.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IniFileReader

public IniFileReader(File iniFile)
              throws IOException
Loads the Ini-File

Parameters:
iniFile - File to load
Throws:
IOException

IniFileReader

public IniFileReader(InputStream stream)
              throws IOException
Loads the Ini from a InputStream

Parameters:
stream - Stream with Ini-File
Throws:
IOException
Method Detail

getSection

public HashMap<String,String> getSection(String section)
Get a specific "Section" of the Ini-File. Each Key=Value is stored in the HashMap as Key = Value

Parameters:
section - Section to return
Returns:
Specific Section as HashMap

getAllSections

public String[] getAllSections()
Gets all available Sections in the loaded Ini-File

Returns:

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)