Top Description Fields Constructors Methods
org.apache.bcel.util

pack-priv final Class AttributeHTML

extends Object
implements Closeable
Class Inheritance
All Implemented Interfaces
java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.Closeable, .FileNotFoundException, .PrintWriter, .UnsupportedEncodingException, java.nio.charset.Charset, org.apache.bcel.Const, org.apache.bcel.classfile.Attribute, .Code, .CodeException, .ConstantPool, .ConstantValue, .ExceptionTable, .InnerClass, .InnerClasses, .LineNumber, .LineNumberTable, .LocalVariableTable, .SourceFile, .Utility

Convert found attributes into HTML file.

Field Summary

Modifier and TypeField and Description
private int
private final String
private final ConstantHTML
private final ConstantPool
private final PrintWriter

Constructor Summary

AccessConstructor and Description
pack-priv
AttributeHTML(final String dir, final String className, final ConstantPool constantPool, final ConstantHTML constantHtml, final Charset charset)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.
pack-priv void
writeAttribute(final Attribute attribute, final String anchor)

pack-priv void
writeAttribute(final Attribute attribute, final String anchor, final int methodNumber)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attrCountback to summary
private int attrCount
classNameback to summary
private final String className
constantHtmlback to summary
private final ConstantHTML constantHtml
constantPoolback to summary
private final ConstantPool constantPool
printWriterback to summary
private final PrintWriter printWriter

Constructor Detail

AttributeHTMLback to summary
pack-priv AttributeHTML(final String dir, final String className, final ConstantPool constantPool, final ConstantHTML constantHtml, final Charset charset) throws FileNotFoundException, UnsupportedEncodingException

Method Detail

closeback to summary
public void close()

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
writeAttributeback to summary
pack-priv void writeAttribute(final Attribute attribute, final String anchor)
writeAttributeback to summary
pack-priv void writeAttribute(final Attribute attribute, final String anchor, final int methodNumber)