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

public final Class ConstantUtf8

extends Constant
Class Inheritance
Imports
java.io.DataInput, .IOException, java.util.Objects, org.apache.tomcat.util.bcel.Const

Extends the abstract Constant to represent a reference to a UTF-8 encoded string.
See Also
Constant

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
private
ConstantUtf8(final String
Data
value
)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

Data converted to string.
getBytes
()

pack-priv static ConstantUtf8

Returns:

a new or cached instance of the given value.
getInstance
(final DataInput
the value.
dataInput
)

Gets a new or cached instance of the given value.

Inherited from org.apache.tomcat.util.bcel.classfile.Constant:
getTagreadConstanttoString

Field Detail

valueback to summary
private final String value

Constructor Detail

ConstantUtf8back to summary
private ConstantUtf8(final String value)
Parameters
value:String

Data

Method Detail

getBytesback to summary
public String getBytes()
Returns:String

Data converted to string.

getInstanceback to summary
pack-priv static ConstantUtf8 getInstance(final DataInput dataInput) throws IOException

Gets a new or cached instance of the given value.

See ConstantUtf8 class Javadoc for details.

Parameters
dataInput:DataInput

the value.

Returns:ConstantUtf8

a new or cached instance of the given value.

Exceptions
IOException:
if an I/O error occurs.