org.multijava.util.classfile
Class ClassPath.Data
java.lang.Object
org.multijava.util.classfile.ClassPath.Data
- Enclosing class:
- ClassPath
- public static class ClassPath.Data
- extends Object
This class mimics a DataInput, but optimizes the reading of the supplied InputStream.
The InputStream is read in one fell swoop into a data array - presumes that such reading
is efficient and that the data array does not need to be too big.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
is
private InputStream is
ba
private byte[] ba
stack
private static Stack stack
ClassPath.Data
public ClassPath.Data(InputStream is)
getDataInput
public DataInput getDataInput()
throws IOException
- Throws:
IOException
release
public void release()
getByteArray
private static byte[] getByteArray()
- Returns a free byte array.
release
private static void release(byte[] arr)
- Releases a byte array, adding it to the free list.
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.