|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.enhancer.OutputStreamWrapper
This class serves as a wrapper for an output stream of a class file. The
stream is passed as a parameter to the byte code enhancer, that can
sets the classname of the written Java class to the wrapper.
This wrapper is necessary to determine the classname outside the enhancer,
after the class has been enhanced, since do do not always know the
classname of an opened input stream.
Field Summary | |
private java.lang.String |
className
The classname of the written Java class. |
private java.io.OutputStream |
out
The wrapped output stream. |
Constructor Summary | |
OutputStreamWrapper(java.io.OutputStream out)
Constructs a new object. |
Method Summary | |
java.lang.String |
getClassName()
Gets the classname of the written Java class. |
java.io.OutputStream |
getStream()
Gets the wrapped output stream. |
void |
setClassName(java.lang.String classname)
Sets the name of the written Java class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.io.OutputStream out
private java.lang.String className
Constructor Detail |
public OutputStreamWrapper(java.io.OutputStream out)
out
- The output stream to wrap.Method Detail |
public final java.io.OutputStream getStream()
public final java.lang.String getClassName()
public final void setClassName(java.lang.String classname)
classname
- The name of the Java class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |