Top Description Fields Constructors Methods
org.aspectj.weaver

public Class VersionedDataInputStream

extends DataInputStream
Class Inheritance
Imports
java.io.DataInputStream, .IOException, .InputStream, org.aspectj.weaver.AjAttribute.WeaverVersionInfo

Lightweight subclass of DataInputStream that knows what version of the weaver was used to construct the data in it. The input stream has a constant pool reader attached which enables it to decode constant pool references found within the data being read.
Author
Andy Clement

Field Summary

Modifier and TypeField and Description
private ConstantPoolReader
private AjAttribute.WeaverVersionInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public long
public int
public int
public boolean
public String
public String
public UnresolvedType
public String
readUtf8(int cpIndex)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.io.DataInputStream:
readreadreadBooleanreadBytereadCharreadDoublereadFloatreadFullyreadFullyreadIntreadLinereadLongreadShortreadUnsignedBytereadUnsignedShortreadUTFreadUTFskipBytes

Field Detail

constantPoolReaderback to summary
private ConstantPoolReader constantPoolReader
versionback to summary
private AjAttribute.WeaverVersionInfo version

Constructor Detail

VersionedDataInputStreamback to summary
public VersionedDataInputStream(InputStream is, ConstantPoolReader constantPoolReader)

Method Detail

canDecompressback to summary
public boolean canDecompress()
getBuildstampback to summary
public long getBuildstamp()
getMajorVersionback to summary
public int getMajorVersion()
getMinorVersionback to summary
public int getMinorVersion()
isAtLeast169back to summary
public boolean isAtLeast169()
readPathback to summary
public String readPath() throws IOException
readSignatureback to summary
public String readSignature() throws IOException
readSignatureAsUnresolvedTypeback to summary
public UnresolvedType readSignatureAsUnresolvedType() throws IOException
readUtf8back to summary
public String readUtf8(int cpIndex)
setVersionback to summary
public void setVersion(AjAttribute.WeaverVersionInfo version)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.