Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`NarrowedInputStream(InputStream stream, byte[] start, byte[] stop)`

Method Summary
`void` | `mark(int readlimit)`
`int` | `read()`

Methods inherited from class java.io.InputStream
`available, close, markSupported, read, read, reset, skip`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NarrowedInputStream

    public NarrowedInputStream(InputStream stream,
                               byte[] start,
                               byte[] stop)

Method Detail

### read

    public int read()
             throws IOException

  Specified by:
    `read` in class `InputStream`
    `IOException`

### mark

    public void mark(int readlimit)

  Overrides:
    `mark` in class `InputStream`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD