aboutsummaryrefslogtreecommitdiff
path: root/doc/html/guide/ivyTranslater.java
diff options
context:
space:
mode:
authorjestin2001-08-06 14:32:47 +0000
committerjestin2001-08-06 14:32:47 +0000
commit8fef6a76959160bf73064be48d4aa36b48f27412 (patch)
tree0302bba851a31c9c75973239364094a2c5fa49cb /doc/html/guide/ivyTranslater.java
parent5e78d21ce9c03add4bee47b0eb8ab359b639b306 (diff)
downloadivy-java-8fef6a76959160bf73064be48d4aa36b48f27412.zip
ivy-java-8fef6a76959160bf73064be48d4aa36b48f27412.tar.gz
ivy-java-8fef6a76959160bf73064be48d4aa36b48f27412.tar.bz2
ivy-java-8fef6a76959160bf73064be48d4aa36b48f27412.tar.xz
Theses docs have been removed from this package. What a pity ! They now belong
to the ivy cvsroot. What should I do ?
Diffstat (limited to 'doc/html/guide/ivyTranslater.java')
-rw-r--r--doc/html/guide/ivyTranslater.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/doc/html/guide/ivyTranslater.java b/doc/html/guide/ivyTranslater.java
deleted file mode 100644
index 696633c..0000000
--- a/doc/html/guide/ivyTranslater.java
+++ /dev/null
@@ -1,29 +0,0 @@
-import fr.dgac.ivy.* ;
-
-class ivyTranslater implements IvyMessageListener {
-
- private Ivy bus;
-
- ivyTranslater() {
- // initialization
- bus = new Ivy("IvyTranslater","Hello le monde",null);
- bus.bindMsg("^Hello(.*)",this);
- bus.bindMsg("^Bye$",new IvyMessageListener() {
- // callback for "Bye" message
- public void receive(IvyClient client, String[] args) {System.exit(0);}
- });
- try {
- // starts the bus on the default domain or IVY_DOMAIN property
- bus.start(null);
- } catch (IvyException ie) {
- System.err.println("can't run the Ivy bus" + ie.getMessage());
- }
- }
-
- // callback associated to the "Hello" messages"
- public void receive(IvyClient client, String[] args) {
- bus.sendMsg("Bonjour"+((args.length>0)?args[0]:""));
- }
-
- public static void main(String args[]) { new ivyTranslater(); }
-}