public final class ConfigFile extends Object
RemoteSet.| Modifier and Type | Field and Description |
|---|---|
static String |
defaultCharsetName
Default character set input files.
|
| Modifier and Type | Method and Description |
|---|---|
static RemoteSet |
parseConfig(File filename,
String charsetName,
boolean rejectLircCode,
String creatingUser,
boolean alternatingSigns)
Parses a Lirc configuration file, and returns a
RemoteSet. |
static RemoteSet |
parseConfig(Reader reader,
String source,
boolean rejectLircCode,
String creatingUser,
boolean alternatingSigns)
|
static Collection<IrRemote> |
readConfig(File filename,
String charsetName,
boolean rejectLircCode)
Reads the file given as first argument and deliveres a Collection of
IrRemote's. |
static Collection<IrRemote> |
readConfig(Reader reader,
String source,
boolean rejectLircCode) |
public static final String defaultCharsetName
public static Collection<IrRemote> readConfig(File filename, String charsetName, boolean rejectLircCode) throws IOException
IrRemote's.filename - lirc.conf filecharsetName - Name of the Charset used for reading.rejectLircCode - if true, so-called LircCode remotes (without timing information, depending on special drivers),
will be accepted.IOException - Misc IO problempublic static Collection<IrRemote> readConfig(Reader reader, String source, boolean rejectLircCode) throws IOException
IOExceptionpublic static RemoteSet parseConfig(File filename, String charsetName, boolean rejectLircCode, String creatingUser, boolean alternatingSigns) throws IOException
RemoteSet.filename - Lirc configuration filecharsetName - Name of the character set for reading, e.g. URF-8, ISO-8859-1, WINDOWS-1252.rejectLircCode - If true, so-called Lirccode files are processed (but will be of limited use anyhow).creatingUser - Name of the creating user; for documentation purposes.alternatingSigns - If true, the generated signals will precede gaps with a minus sign.IOException - Misc IO errors.public static RemoteSet parseConfig(Reader reader, String source, boolean rejectLircCode, String creatingUser, boolean alternatingSigns) throws IOException
reader - Reader delivering a Lirc configuration file.source - String containing the source of the informatsion, for documentation purposes.rejectLircCode - If true, so-called Lirccode files are rejected, otherwise they are processed (but will be of limited use anyhow)creatingUser - Name of the creating user; for documentation purposes.alternatingSigns - If true, the generated signals will precede gaps with a minus sign.IOException - Misc IO errors.Copyright © 2016. All rights reserved.