Package libsidutils.sidid
Klasse SidIdBase
java.lang.Object
libsidutils.sidid.SidIdBase
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprivate FilegetLocation(String fname) Search for the configuration file at various locations.protected byte[]Load byte array containing the text to be searched in.private FileLocate configuration file at the given path.protected byte[]readConfiguration(String fname, String pkg) Load configuration file.private byte[]readInternal(String fname, String pkg) Read from internal SID-ID configuration file.
-
Konstruktordetails
-
SidIdBase
public SidIdBase()
-
-
Methodendetails
-
load
Load byte array containing the text to be searched in.- Parameter:
name- the filename to load- Gibt zurück:
- the byte array with the file contents
- Löst aus:
IOException- read error
-
readConfiguration
Load configuration file.- Parameter:
fname-pkg-- Gibt zurück:
- the configuration file entries
-
readInternal
Read from internal SID-ID configuration file.- Parameter:
fname-pkg-- Gibt zurück:
- the contents
-
getLocation
Search for the configuration file at various locations.- current working dir
- user home dir
- Parameter:
fname-- Gibt zurück:
- the configuration file or null (not found)
-
locate
Locate configuration file at the given path.- Parameter:
location- the path to search infname-- Gibt zurück:
- the file (caller should check exists)
-