Package org.aspectj.weaver
Class VersionedDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.aspectj.weaver.VersionedDataInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
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
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionVersionedDataInputStream(InputStream is, ConstantPoolReader constantPoolReader)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
int
boolean
readPath()
readUtf8(int cpIndex)
void
setVersion(AjAttribute.WeaverVersionInfo version)
toString()
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
VersionedDataInputStream
-
-
Method Details
-
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getBuildstamp
public long getBuildstamp() -
setVersion
-
readUtf8
-
canDecompress
public boolean canDecompress() -
isAtLeast169
public boolean isAtLeast169() -
readPath
- Throws:
IOException
-
readSignature
- Throws:
IOException
-
readSignatureAsUnresolvedType
- Throws:
IOException
-
toString
-