org.codehaus.enunciate.util
Class JaxbPackageInfoWriter

java.lang.Object
  extended by org.codehaus.enunciate.util.JaxbPackageInfoWriter

public class JaxbPackageInfoWriter
extends java.lang.Object

Writes a package-info.java file that has jaxb annotations for some bytecode.

Author:
Ryan Heaton

Constructor Summary
JaxbPackageInfoWriter()
           
 
Method Summary
 java.lang.String write(java.io.InputStream bytecode)
          Write the package-info for some bytecode.
protected  void writeAnnotationNode(AnnotationNode annotation, java.io.Writer writer)
          Write an annotation node.
protected  void writeAnnotationValue(java.lang.Object value, java.io.Writer writer)
          Write an annotation value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbPackageInfoWriter

public JaxbPackageInfoWriter()
Method Detail

write

public java.lang.String write(java.io.InputStream bytecode)
                       throws java.io.IOException
Write the package-info for some bytecode.

Parameters:
bytecode - The bytecode.
Returns:
The package-info file.
Throws:
java.io.IOException

writeAnnotationNode

protected void writeAnnotationNode(AnnotationNode annotation,
                                   java.io.Writer writer)
                            throws java.io.IOException
Write an annotation node.

Parameters:
annotation - The annotation.
writer - The writer.
Throws:
java.io.IOException

writeAnnotationValue

protected void writeAnnotationValue(java.lang.Object value,
                                    java.io.Writer writer)
                             throws java.io.IOException
Write an annotation value.

Parameters:
value - The annotation value.
writer - The writer.
Throws:
java.io.IOException