com.lightdev.app.trec.client.stub
Class ClientStubWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.BufferedWriter
          extended by com.lightdev.app.trec.client.stub.StubWriter
              extended by com.lightdev.app.trec.client.stub.ClientStubWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class ClientStubWriter
extends StubWriter

ClientStubWriter creates the Java source code of a client class a TREC client application can use to call methods of a remote class as if they were part of the client application.

Version:
2, 23.01.2006
Author:
Ulrich Hilger, Light Development, http://www.lightdev.com, info@lightdev.com, published under the terms and conditions of the BSD License, for details see file license.txt in the distribution package of this software

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ClientStubWriter(Writer out)
          create a new instance of a ClientStubWriter object
ClientStubWriter(Writer out, int sz)
          create a new instance of a ClientStubWriter object
 
Method Summary
 void generateStub(org.apache.bcel.classfile.JavaClass jc)
          generate ava source code of a client stub for a given class
 
Methods inherited from class com.lightdev.app.trec.client.stub.StubWriter
isXmlRpcType, typeToString, writeLine
 
Methods inherited from class java.io.BufferedWriter
close, flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientStubWriter

public ClientStubWriter(Writer out)
create a new instance of a ClientStubWriter object

Parameters:
out - the writer to write to

ClientStubWriter

public ClientStubWriter(Writer out,
                        int sz)
create a new instance of a ClientStubWriter object

Parameters:
out - the writer to write to
sz - the buffer size
Method Detail

generateStub

public void generateStub(org.apache.bcel.classfile.JavaClass jc)
                  throws IOException
generate ava source code of a client stub for a given class

Parameters:
jc - the class to write a client stub for
Throws:
IOException