Lines Matching refs:stream

100     if (stream == null)
137 stream = Util.stream( i, tieNameModifier, ".java" ) ;
139 stream = Util.stream( i, skeletonNameModifier, ".java" ) ;
144 Util.writePackage (stream, i, Util.StubFile);
145 Util.writeProlog (stream, ((GenFileStream)stream).name ());
147 i.comment ().generate ("", stream);
149 stream.println ('{');
150 stream.println ();
156 stream.println ("public class " + tieClassName +
160 stream.println ("public abstract class " + skeletonClassName +
162 stream.print (" implements " + intfName + "Operations, ");
163 stream.println ("org.omg.CORBA.portable.InvokeHandler");
165 stream.println ("public abstract class " + skeletonClassName +
167 stream.print (" implements " + intfName + ", ");
168 stream.println ("org.omg.CORBA.portable.InvokeHandler");
195 stream.println (" private " + intfName + "Operations _impl;");
196 stream.println (" private org.omg.PortableServer.POA _poa;");
199 stream.println (" private " + intfName + "Operations _impl;");
223 stream.println ();
225 stream.println ("} // class " + tieClassName);
227 stream.println ("} // class " + skeletonClassName);
232 * Close the print stream, which flushes the stream to file.
236 stream.close ();
241 stream.println (" // Constructors");
245 stream.println (" public " + tieClassName + " ()");
246 stream.println (" {");
247 stream.println (" }");
249 stream.println (" public " + skeletonClassName + " ()");
250 stream.println (" {");
251 stream.println (" }");
254 stream.println ();
263 stream.println (" public " + tieClassName +
265 stream.println (" {");
268 stream.println (" super (impl);");
270 stream.println (" super ();");
271 stream.println (" _impl = impl;");
272 stream.println (" }");
273 stream.println ();
286 stream.println (" public " + tieClassName + " ( " + intfName + "Operations delegate ) {");
287 stream.println (" this._impl = delegate;");
288 stream.println (" }");
290 stream.println (" public " + tieClassName + " ( " + intfName +
292 stream.println (" this._impl = delegate;");
293 stream.println (" this._poa = poa;");
294 stream.println (" }");
299 stream.println (" public " + intfName+ "Operations _delegate() {");
300 stream.println (" return this._impl;");
301 stream.println (" }");
303 stream.println (" public void _delegate (" + intfName + "Operations delegate ) {");
304 stream.println (" this._impl = delegate;");
305 stream.println (" }");
307 stream.println (" public org.omg.PortableServer.POA _default_POA() {");
308 stream.println (" if(_poa != null) {");
309 stream.println (" return _poa;");
310 stream.println (" }");
311 stream.println (" else {");
312 stream.println (" return super._default_POA();");
313 stream.println (" }");
314 stream.println (" }");
363 stream.println (" public org.omg.CORBA.portable.OutputStream _invoke (String $method,");
364 stream.println (indent + "org.omg.CORBA.portable.InputStream in,");
365 stream.println (indent + "org.omg.CORBA.portable.ResponseHandler $rh)");
366 stream.println (" {");
378 // Per Simon 8/26/98, create and return reply stream for all methods - KLR
379 stream.println (" org.omg.CORBA.portable.OutputStream out = null;");
380 stream.println (" java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);");
381 stream.println (" if (__method == null)");
382 stream.println (" throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);");
383 stream.println ();
386 stream.println (" switch (__method.intValue ())");
387 stream.println (" {");
394 ((MethodGen)method.generator ()).dispatchSkeleton (symbolTable, method, stream, realI);
402 stream.println (indent + "default:");
403 stream.println (indent + " throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);");
404 stream.println (" }");
405 stream.println ();
407 stream.println (" return out;");
409 stream.println(" throw new org.omg.CORBA.BAD_OPERATION();");
411 stream.println (" } // _invoke");
412 stream.println ();
421 stream.println (" private static java.util.Hashtable _methods = new java.util.Hashtable ();");
422 stream.println (" static");
423 stream.println (" {");
432 stream.println (" _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
434 stream.println (" _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
437 stream.println (" _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
439 stream.println (" }");
440 stream.println ();
453 (symbolTable, method, stream, realI);
459 stream.println ();
477 stream.println (", ");
478 stream.print (" \"" + (String)e.nextElement () + '"');
503 stream.println (" // Type-specific CORBA::Object operations");
505 stream.println (" private static String[] __ids = {");
507 stream.println ("};");
508 stream.println ();
517 stream.println (" public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)");
523 stream.println (" {");
524 stream.println (" return (String[])__ids.clone ();");
525 stream.println (" }");
526 stream.println ();
528 stream.println (" public "+ i.name() +" _this() ");
529 stream.println (" {");
530 stream.println (" return "+ i.name() +"Helper.narrow(" );
531 stream.println (" super._this_object());");
532 stream.println (" }");
533 stream.println ();
535 stream.println (" public "+ i.name() +" _this(org.omg.CORBA.ORB orb) ");
536 stream.println (" {");
537 stream.println (" return "+ i.name() +"Helper.narrow(" );
538 stream.println (" super._this_object(orb));");
539 stream.println (" }");
540 stream.println ();
543 stream.println (" public String[] _ids ()");
544 stream.println (" {");
545 stream.println (" return (String[])__ids.clone ();");
546 stream.println (" }");
547 stream.println ();
559 protected PrintWriter stream = null;