X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Futil%2FKnownLength.java;fp=src%2Forg%2Fibex%2Futil%2FKnownLength.java;h=0000000000000000000000000000000000000000;hb=ac84b5a03467c0853c7275105712ece6c71be1f1;hp=06118bb40e870e0021496cf331fc1bd0ad3d0000;hpb=3f8aa5300e178e8975b0edc896a5a9d303e7bdf3;p=org.ibex.core.git diff --git a/src/org/ibex/util/KnownLength.java b/src/org/ibex/util/KnownLength.java deleted file mode 100644 index 06118bb..0000000 --- a/src/org/ibex/util/KnownLength.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2003 Adam Megacz all rights reserved. -// -// You may modify, copy, and redistribute this code under the terms of -// the GNU Library Public License version 2.1, with the exception of -// the portion of clause 6a after the semicolon (aka the "obnoxious -// relink clause") - -package org.ibex.util; -import java.io.*; - -/** a generic interface for things that "know" their length */ -public interface KnownLength { - - public abstract int getLength(); - - public static class KnownLengthInputStream extends FilterInputStream implements KnownLength { - int length; - public int getLength() { return length; } - public KnownLengthInputStream(java.io.InputStream parent, int length) { - super(parent); - this.length = length; - } - } - -}