public final class LircConfigFile extends Object
LircRemotes, while guaranteeing that all remotes will
be presentm possibly with modified keys for satisfying the uniqueness requirement.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CHARSET_NAME
Default character set for the input files.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static long |
parseLircNumber(String s) |
(package private) static long |
parseUnsignedLongHex(String s) |
(package private) static void |
readConfig(Map<String,LircRemote> dictionary,
File filename) |
(package private) static void |
readConfig(Map<String,LircRemote> dictionary,
File filename,
String charsetName)
Reads the file given as second argument and updates the dictionary of
LircRemotes given as first argument. |
(package private) static void |
readConfig(Map<String,LircRemote> dictionary,
Reader reader) |
(package private) static void |
readConfig(Map<String,LircRemote> dictionary,
Reader reader,
String source) |
static List<LircRemote> |
readRemotes(Reader reader) |
static List<LircRemote> |
readRemotes(Reader reader,
String source) |
static List<LircRemote> |
readRemotes(String urlOrFilename,
String charSetName) |
static List<LircRemote> |
readRemotesFileOrDirectory(File fileOrDirectory,
String charSetName) |
static List<LircRemote> |
readRemotesURL(String urlOrFilename,
String charsetName) |
public static final String DEFAULT_CHARSET_NAME
static void readConfig(Map<String,LircRemote> dictionary, File filename, String charsetName) throws IOException
LircRemotes given as first argument.
The names in it are made unique by, if necessary, appending a suffix.dictionary - Map of LircRemotes.filename - lircd.conf file, or directory containing such.charsetName - Name of the Charset used for reading.IOException - Misc IO problemstatic void readConfig(Map<String,LircRemote> dictionary, File filename) throws IOException
IOExceptionstatic void readConfig(Map<String,LircRemote> dictionary, Reader reader, String source) throws IOException
IOExceptionstatic void readConfig(Map<String,LircRemote> dictionary, Reader reader) throws IOException
IOExceptionpublic static List<LircRemote> readRemotesFileOrDirectory(File fileOrDirectory, String charSetName) throws IOException
IOExceptionpublic static List<LircRemote> readRemotes(Reader reader, String source) throws IOException
IOExceptionpublic static List<LircRemote> readRemotes(Reader reader) throws IOException
IOExceptionpublic static List<LircRemote> readRemotes(String urlOrFilename, String charSetName) throws IOException
IOExceptionpublic static List<LircRemote> readRemotesURL(String urlOrFilename, String charsetName) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionstatic long parseLircNumber(String s)
static long parseUnsignedLongHex(String s)
Copyright © 2019. All rights reserved.