All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.ssi.DelayedInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----w3c.jigsaw.ssi.DelayedInputStream

public abstract class DelayedInputStream
extends InputStream
Used to delay the (perhaps expensive) creation of a real stream until the first access.


Variable Index

 o in
The InputStream that data will be really read from.

Constructor Index

 o DelayedInputStream()

Method Index

 o available()
 o close()
 o init()
This method is called on the first access to the stream.
 o mark(int)
 o markSupported()
 o read()
 o read(byte[])
 o read(byte[], int, int)
 o reset()
 o skip(long)

Variables

 o in
 protected InputStream in
The InputStream that data will be really read from.

Constructors

 o DelayedInputStream
 public DelayedInputStream()

Methods

 o init
 protected abstract void init()
This method is called on the first access to the stream. (Not at construction time.) Should initialize in as a valid stream. Must not make it null.

 o close
 public final void close() throws IOException
Overrides:
close in class InputStream
 o read
 public final int read() throws IOException
Overrides:
read in class InputStream
 o read
 public final int read(byte b[],
                       int off,
                       int len) throws IOException
Overrides:
read in class InputStream
 o read
 public final int read(byte b[]) throws IOException
Overrides:
read in class InputStream
 o reset
 public final void reset() throws IOException
Overrides:
reset in class InputStream
 o mark
 public final void mark(int readlimit)
Overrides:
mark in class InputStream
 o markSupported
 public final boolean markSupported()
Overrides:
markSupported in class InputStream
 o skip
 public final long skip(long n) throws IOException
Overrides:
skip in class InputStream
 o available
 public final int available() throws IOException
Overrides:
available in class InputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index