--- apache/tomcat/util/bcel/classfile/Constant.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/Constant.java (working copy) @@ -17,7 +17,7 @@ */ package org.apache.tomcat.util.bcel.classfile; -import java.io.DataInputStream; +import java.io.DataInput; import java.io.IOException; import org.apache.tomcat.util.bcel.Constants; @@ -62,7 +62,7 @@ * @param file Input stream * @return Constant object */ - static Constant readConstant( DataInputStream file ) throws IOException, + static Constant readConstant( DataInput file ) throws IOException, ClassFormatException { byte b = file.readByte(); // Read tag byte int skipSize; --- apache/tomcat/util/bcel/classfile/Annotations.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/Annotations.java (working copy) @@ -17,7 +17,7 @@ */ package org.apache.tomcat.util.bcel.classfile; -import java.io.DataInputStream; +import java.io.DataInput; import java.io.IOException; /** @@ -34,7 +34,7 @@ * @param file Input stream * @param constant_pool Array of constants */ - Annotations(DataInputStream file, ConstantPool constant_pool) + Annotations(DataInput file, ConstantPool constant_pool) throws IOException { final int annotation_table_length = (file.readUnsignedShort()); annotation_table = new AnnotationEntry[annotation_table_length]; --- apache/tomcat/util/bcel/classfile/ConstantUtf8.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/ConstantUtf8.java (working copy) @@ -16,7 +16,7 @@ */ package org.apache.tomcat.util.bcel.classfile; -import java.io.DataInputStream; +import java.io.DataInput; import java.io.IOException; import org.apache.tomcat.util.bcel.Constants; @@ -34,7 +34,7 @@ private final String bytes; - static ConstantUtf8 getInstance(DataInputStream file) throws IOException { + static ConstantUtf8 getInstance(DataInput file) throws IOException { return new ConstantUtf8(file.readUTF()); } --- apache/tomcat/util/bcel/classfile/ElementValuePair.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/ElementValuePair.java (working copy) @@ -17,7 +17,7 @@ */ package org.apache.tomcat.util.bcel.classfile; -import java.io.DataInputStream; +import java.io.DataInput; import java.io.IOException; import org.apache.tomcat.util.bcel.Constants; @@ -36,7 +36,7 @@ private final int elementNameIndex; - ElementValuePair(DataInputStream file, ConstantPool constantPool) throws IOException { + ElementValuePair(DataInput file, ConstantPool constantPool) throws IOException { this.constantPool = constantPool; this.elementNameIndex = file.readUnsignedShort(); this.elementValue = ElementValue.readElementValue(file, constantPool); --- apache/tomcat/util/bcel/classfile/AnnotationEntry.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/AnnotationEntry.java (working copy) @@ -17,7 +17,7 @@ */ package org.apache.tomcat.util.bcel.classfile; -import java.io.DataInputStream; +import java.io.DataInput; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -44,7 +44,7 @@ * @param constant_pool * @throws IOException */ - AnnotationEntry(DataInputStream file, ConstantPool constant_pool) throws IOException { + AnnotationEntry(DataInput file, ConstantPool constant_pool) throws IOException { this.constant_pool = constant_pool; --- apache/tomcat/util/bcel/classfile/ConstantPool.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/ConstantPool.java (working copy) @@ -17,7 +17,7 @@ */ package org.apache.tomcat.util.bcel.classfile; -import java.io.DataInputStream; +import java.io.DataInput; import java.io.IOException; import org.apache.tomcat.util.bcel.Constants; @@ -45,7 +45,7 @@ * @throws IOException * @throws ClassFormatException */ - ConstantPool(DataInputStream file) throws IOException, ClassFormatException { + ConstantPool(DataInput file) throws IOException, ClassFormatException { int constant_pool_count = file.readUnsignedShort(); constant_pool = new Constant[constant_pool_count]; /* constant_pool[0] is unused by the compiler and may be used freely --- apache/tomcat/util/bcel/classfile/ClassParser.java (revision 1625454) +++ apache/tomcat/util/bcel/classfile/ClassParser.java (working copy) @@ -18,11 +18,13 @@ package org.apache.tomcat.util.bcel.classfile; import java.io.BufferedInputStream; +import java.io.DataInput; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import org.apache.tomcat.util.bcel.Constants; +import org.apache.tomcat.util.bcel.util.FastDataInputStream; /** * Wrapper class that parses a given Java .class file. The method