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

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.ServerStubWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class ServerStubWriter
extends StubWriter

ServerStubWriter creates an agent class for any given class file

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
ServerStubWriter(Writer out)
          create a new instance of a ClientStubWriter object
ServerStubWriter(Writer out, int sz)
          create a new instance of a ClientStubWriter object
 
Method Summary
 void generateStub(org.apache.bcel.classfile.JavaClass jc)
          generate Java source code of a server stub class 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

ServerStubWriter

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

Parameters:
out - the writer to write to

ServerStubWriter

public ServerStubWriter(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 Java source code of a server stub class for a given class

Parameters:
jc - the class to generate code for
Throws:
IOException