FileDocCategorySizeDatePackage
GrepInputStream.javaAPI DocExample1138Sat Jun 02 03:11:38 BST 2001None

GrepInputStream

public class GrepInputStream extends FilterInputStream

Fields Summary
String
substring
DataInputStream
in
Constructors Summary
public GrepInputStream(DataInputStream in, String substring)

        super(in);
        this.in = in;
        this.substring = substring;
    
Methods Summary
public final java.lang.StringreadLine()

        String line;
        do {
            line = in.readLine();
        }
        while ((line != null) && line.indexOf(substring) == -1);
        return line;