public class IrpMaster extends Object implements Serializable
Constructor and Description |
---|
IrpMaster(InputStream inputStream)
Like the other version, but reads from an InputStream instead.
|
IrpMaster(Reader reader)
Like the other version, but reads from a Reader instead.
|
IrpMaster(String datafile)
Sets up a new IrpMaster from its first argument.
|
Modifier and Type | Method and Description |
---|---|
String |
getDocumentation(String name) |
String |
getEfcTranslation(String name) |
String |
getIrp(String name) |
static String |
getIrp(String configFilename,
String protocolName)
Static version of getIrp.
|
Set<String> |
getNames() |
ArrayList<Short> |
getUeiProtocol(String name) |
boolean |
isKnown(String protocol) |
static boolean |
isKnown(String protocolsPath,
String protocol) |
static void |
main(String[] args) |
static int |
makeHex(String outFile,
boolean append,
String configFileName,
String preamble,
String protocolName,
String device,
String OBC)
This function closely mimics the API of the MakeHex dll entry function.
|
static String |
makeHex(String configFileName,
String protocolName,
int device,
int subdevice,
int obc)
Returns the Pronto form of the IR signal.
|
static int |
makeHexIRP(String outFile,
boolean append,
String irp,
String preamble,
String protocolName,
int device,
int subdevice,
int obc) |
static int |
makeHexIRP(String outFile,
boolean append,
String irp,
String preamble,
String protocolName,
String device,
String OBC) |
static String |
makeHexIRP(String irp,
int device,
int subdevice,
int obc) |
Protocol |
newProtocol(String name)
Constructs a new Protocol with requested name, taken from the configuration
file/data base within the current IrpMaster.
|
Protocol |
newProtocolOrNull(String name) |
public IrpMaster(InputStream inputStream) throws IncompatibleArgumentException
inputStream
- IncompatibleArgumentException
public IrpMaster(Reader reader) throws IncompatibleArgumentException
reader
- IncompatibleArgumentException
public IrpMaster(String datafile) throws FileNotFoundException, IncompatibleArgumentException
datafile
- Configuration file for IRP protocols.FileNotFoundException
IncompatibleArgumentException
public boolean isKnown(String protocol)
public static boolean isKnown(String protocolsPath, String protocol) throws FileNotFoundException, IncompatibleArgumentException
public Protocol newProtocol(String name) throws UnassignedException, ParseException, UnknownProtocolException
name
- protocol name in the configuration file/data baseUnassignedException
ParseException
UnknownProtocolException
public Protocol newProtocolOrNull(String name) throws UnassignedException, ParseException, UnknownProtocolException
public static void main(String[] args)
args
- See the usage message.public static String getIrp(String configFilename, String protocolName)
configFilename
- protocolName
- public static int makeHex(String outFile, boolean append, String configFileName, String preamble, String protocolName, String device, String OBC)
outFile
- Path to the file to which the Pronto form is to be exported.append
- True iff appending to Outfile, otherwise it is truncated.configFileName
- Pathname to configuration file, typically IrpProtocols.ini.preamble
- If non-null, a header string that is prefixed (followed by newline) to the Pronto export. If null, no header is prefixed.protocolName
- Name of protocoldevice
- The device and subdevice as a string, with a dot separating the two.OBC
- The OBC value as a string.public static String makeHex(String configFileName, String protocolName, int device, int subdevice, int obc)
configFileName
- protocolName
- device
- subdevice
- obc
- public static int makeHexIRP(String outFile, boolean append, String irp, String preamble, String protocolName, String device, String OBC)
outFile
- append
- irp
- preamble
- protocolName
- device
- OBC
- public static int makeHexIRP(String outFile, boolean append, String irp, String preamble, String protocolName, int device, int subdevice, int obc)
outFile
- append
- irp
- preamble
- protocolName
- device
- subdevice
- obc
- Copyright © 2016. All rights reserved.