KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > io > ByteCodeInputStream


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.io;
9
10 import java.io.DataInputStream JavaDoc;
11 import java.io.InputStream JavaDoc;
12
13 /**
14     <tt>DataInputStream</tt> which extends <tt>ByteCodeInput</tt>.
15
16     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
17     @version $Revision: 1.4 $ $Date: 2003/08/18 07:58:12 $
18 */

19 public class ByteCodeInputStream extends DataInputStream JavaDoc
20                                  implements ByteCodeInput
21 {
22
23     /**
24         Constructor.
25         @param in the input stream.
26      */

27     public ByteCodeInputStream(InputStream JavaDoc in) {
28         super(new CountedInputStream(in));
29     }
30     
31     public int getBytesRead() {
32         return ((CountedInputStream)in).getBytesRead();
33     }
34     
35 }
36
Popular Tags