1693 p.plnI("public OutputStream _invoke(String "+method+", InputStream "+_in+", " + |
1693 p.plnI("public OutputStream _invoke(String "+method+", InputStream "+_in+", " + |
1694 "ResponseHandler "+reply+") throws SystemException {"); |
1694 "ResponseHandler "+reply+") throws SystemException {"); |
1695 |
1695 |
1696 if (remoteMethods.length > 0) { |
1696 if (remoteMethods.length > 0) { |
1697 p.plnI("try {"); |
1697 p.plnI("try {"); |
|
1698 p.pln(getName(theType) + " target = this.target;"); |
|
1699 p.plnI("if (target == null) {"); |
|
1700 p.pln("throw new java.io.IOException();"); |
|
1701 p.pOln("}"); |
1698 p.plnI(idExtInputStream + " "+in+" = "); |
1702 p.plnI(idExtInputStream + " "+in+" = "); |
1699 p.pln("(" + idExtInputStream + ") "+_in+";"); |
1703 p.pln("(" + idExtInputStream + ") "+_in+";"); |
1700 p.pO(); |
1704 p.pO(); |
1701 |
1705 |
1702 // See if we should use a hash table style |
1706 // See if we should use a hash table style |