uk.ac.man.bioinf.io
Class NarrowedInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--uk.ac.man.bioinf.io.NarrowedInputStream
- public class NarrowedInputStream
- extends InputStream
NarrowedInputStream.java
This InputStream wraps another and puts a limits access to that
stream. It hides all of the input that occur before the first
occurrence of a given input, and ends after the occurrence of the
second.
It may well be useful in a number of circumstances, but it should
be particularly good for pulling out data from the middle of an
HTML page between two tags.
Created: Thu Feb 8 17:39:21 2001
- Version:
- $Id: NarrowedInputStream.java,v 1.2 2001/04/11 17:04:43 lord Exp $
- Author:
- Phillip Lord
Method Summary |
void |
mark(int readlimit)
|
int |
read()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NarrowedInputStream
public NarrowedInputStream(InputStream stream,
byte[] start,
byte[] stop)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
IOException
mark
public void mark(int readlimit)
- Overrides:
mark
in class InputStream