1 // Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
5 /** a generic interface for things that "know" their length */
6 public interface KnownLength {
8 public abstract int getLength();
10 public static class KnownLengthInputStream extends FilterInputStream implements KnownLength {
12 public int getLength() { return length; }
13 public KnownLengthInputStream(java.io.InputStream parent, int length) {