    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.ssi.DelayedInputStream

    java.lang.Object
       |
       +----java.io.InputStream
               |
               +----org.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.

##

in
  The InputStream that data will be really read from.

##

DelayedInputStream()

##

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

##

in

     protected InputStream in

  The InputStream that data will be really read from.

##

DelayedInputStream

     public DelayedInputStream()

##

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.

close

     public final void close() throws IOException

  Overrides:
    close in class InputStream

read

     public final int read() throws IOException

  Overrides:
    read in class InputStream

read

     public final int read(byte b[],
                           int off,
                           int len) throws IOException

  Overrides:
    read in class InputStream

read

     public final int read(byte b[]) throws IOException

  Overrides:
    read in class InputStream

reset

     public final void reset() throws IOException

  Overrides:
    reset in class InputStream

mark

     public final void mark(int readlimit)

  Overrides:
    mark in class InputStream

markSupported

     public final boolean markSupported()

  Overrides:
    markSupported in class InputStream

skip

     public final long skip(long n) throws IOException

  Overrides:
    skip in class InputStream

available

     public final int available() throws IOException

  Overrides:
    available in class InputStream

    All Packages  Class Hierarchy  This Package  Previous  Next  Index