|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEmu8255.IO
public class IO
This class provides methods for writing to and reading from file, as well as sending an InterruptRequest object to the PIC8259 through a socket and retrieving and setting value of XML configuration tags.
InterruptRequest
Constructor Summary | |
---|---|
IO()
Default Constructor. |
Method Summary | |
---|---|
static int |
GetPort()
|
static java.lang.String |
GetXMLValueOf(java.lang.String tag)
This method gets the value of the XML tag passed as argument. |
static char |
ReadByte(java.lang.String file,
int PortNo)
This method returns one byte as a char at PortNo position within file . |
static void |
SendInterrupt(int IRQId)
This method sends an object InterruptRequest to the PIC8259 through a socket. |
static void |
SetPort(int port)
|
static void |
SetXMLValueOf(java.lang.String tag,
java.lang.String value)
This method sets the value of the XML tag passed as argument. |
static void |
WriteByte(java.lang.String file,
int PortNo,
char Value)
This method writes one byte as a char at PortNo position within file . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IO()
Method Detail |
---|
public static char ReadByte(java.lang.String file, int PortNo)
PortNo
position within file
.
file
- File to read from.PortNo
- Offset from the beginning of the file.
java.io.IOException
public static void WriteByte(java.lang.String file, int PortNo, char Value)
PortNo
position within file
.
file
- File to write to.PortNo
- Offset from the beginning of the file.Value
- Character to write.
java.io.IOException
public static java.lang.String GetXMLValueOf(java.lang.String tag)
tag
- Tag whose value we're looking for.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public static void SetXMLValueOf(java.lang.String tag, java.lang.String value)
tag
- Tag whose value we want to set.value
- Value we want to set for the tag.
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerConfigurationException
public static void SendInterrupt(int IRQId)
IRQId
- Line of interrupt within the 8259 where the IRQ is sent.
java.lang.Exception
InterruptRequest
public static int GetPort()
public static void SetPort(int port)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |