Klasse SidIdBase

java.lang.Object
libsidutils.sidid.SidIdBase
Bekannte direkte Unterklassen:
SidIdInfo, SidIdV2

public class SidIdBase extends Object
  • Konstruktordetails

    • SidIdBase

      public SidIdBase()
  • Methodendetails

    • load

      protected byte[] load(String name) throws IOException
      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

      protected byte[] readConfiguration(String fname, String pkg)
      Load configuration file.
      Parameter:
      fname -
      pkg -
      Gibt zurück:
      the configuration file entries
    • readInternal

      private byte[] readInternal(String fname, String pkg)
      Read from internal SID-ID configuration file.
      Parameter:
      fname -
      pkg -
      Gibt zurück:
      the contents
    • getLocation

      private File getLocation(String fname)
      Search for the configuration file at various locations.
      1. current working dir
      2. user home dir
      Parameter:
      fname -
      Gibt zurück:
      the configuration file or null (not found)
    • locate

      private File locate(String location, String fname)
      Locate configuration file at the given path.
      Parameter:
      location - the path to search in
      fname -
      Gibt zurück:
      the file (caller should check exists)