|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a simple IO factory with multiple channels.
Method Summary | |
void |
closeAllChannels()
Closes all IO channels. |
void |
closeChannel(int iDesc)
Closes an IO channel. |
void |
closeChannel(java.lang.String sName)
Closes an IO channel. |
int |
openChannel(java.lang.String sName,
java.lang.String sURL)
Opens a new IO channel. |
void |
push(int iDesc,
java.lang.Object obj)
Pushes the information into the given channel. |
void |
push(java.lang.String sName,
java.lang.Object obj)
Pushes the information into the given channel. |
Method Detail |
public int openChannel(java.lang.String sName, java.lang.String sURL) throws IOFactoryException
sName
- The channel namesURL
- The channel URL
IOFactoryException
- The channel could not be openedpublic void closeChannel(int iDesc) throws IOFactoryException
iDesc
- The channel descriptor
IOFactoryException
- The channel could not be closedpublic void closeChannel(java.lang.String sName) throws IOFactoryException
sName
- The channel name
IOFactoryException
- The channel could not be closedpublic void closeAllChannels() throws IOFactoryException
IOFactoryException
- The channel could not be closedpublic void push(int iDesc, java.lang.Object obj) throws IOFactoryException
iDesc
- The channel descriptorobj
- The object to be pushed
IOFactoryException
- The failure in channelpublic void push(java.lang.String sName, java.lang.Object obj) throws IOFactoryException
obj
- The object to be pushed
IOFactoryException
- The failure in channel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |