|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--PeerAdderClient
| Constructor Summary | |
PeerAdderClient()
|
|
| Method Summary | |
void |
createInputPipe(java.lang.String fileName)
Load the Pipe Advertisement. |
byte[] |
createMessage(java.lang.String msgStr,
int messageType)
create the message to be sent to gateway peer |
static void |
main(java.lang.String[] args)
|
void |
pipeMsgEvent(net.jxta.pipe.PipeMsgEvent event)
Handles an incoming message. |
void |
sendMsgData(byte[] data)
get the data as input parameter, use pipe to send the message |
void |
startService()
start the ontology provider services daemon |
void |
stringToFile(java.lang.String par_str,
java.lang.String fileName)
convert strings to file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeerAdderClient()
| Method Detail |
public static void main(java.lang.String[] args)
public void pipeMsgEvent(net.jxta.pipe.PipeMsgEvent event)
pipeMsgEvent in interface net.jxta.pipe.PipeMsgListenerevent - the incoming event containing the arriving message.
public void stringToFile(java.lang.String par_str,
java.lang.String fileName)
public void createInputPipe(java.lang.String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
fileName - the name of the file from which to load
the Pipe Advertisement.
FileNoteFoundException - if the Pipe Advertisement
file can't be found.
java.io.IOException - if there is an error binding the pipe.
java.io.FileNotFoundException
public byte[] createMessage(java.lang.String msgStr,
int messageType)
public void sendMsgData(byte[] data)
public void startService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||