|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
edu.rice.cs.plt.io.DirectInputStream
edu.rice.cs.plt.io.WrappedDirectInputStream
public class WrappedDirectInputStream
An implementation of DirectInputStream that inherits that class's default implementations
and delegates all other operations to the wrapped InputStream.
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.plt.io.DirectInputStream |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
WrappedDirectInputStream(java.io.InputStream stream)
|
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
int |
compositeHeight()
Get the maximum path length from this node to a leaf. |
int |
compositeSize()
Get the number of nodes in the tree rooted at this node. |
static DirectInputStream |
makeDirect(java.io.InputStream stream)
If the input is a DirectInputStream, cast it; otherwise, create a
WrappedDirectInputStream. |
void |
mark(int readAheadLimit)
|
boolean |
markSupported()
|
int |
read()
Delegate to the more general DirectInputStream.read(byte[], int, int) method |
int |
read(byte[] bbuf)
Delegate to the more general DirectInputStream.read(byte[], int, int) method |
int |
read(byte[] bbuf,
int offset,
int length)
Subclasses are, at a minimum, required to implement this method. |
void |
reset()
|
long |
skip(long n)
|
| Methods inherited from class edu.rice.cs.plt.io.DirectInputStream |
|---|
read, read, read, readAll, readAll, readAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedDirectInputStream(java.io.InputStream stream)
| Method Detail |
|---|
public int compositeHeight()
Composite
compositeHeight in interface Compositepublic int compositeSize()
Composite
compositeSize in interface Composite
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readAheadLimit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStream
public int read()
throws java.io.IOException
DirectInputStreamDirectInputStream.read(byte[], int, int) method
read in class DirectInputStreamjava.io.IOException
public int read(byte[] bbuf)
throws java.io.IOException
DirectInputStreamDirectInputStream.read(byte[], int, int) method
read in class DirectInputStreamjava.io.IOException
public int read(byte[] bbuf,
int offset,
int length)
throws java.io.IOException
DirectInputStream
read in class DirectInputStreamjava.io.IOException
public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException
public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic static DirectInputStream makeDirect(java.io.InputStream stream)
DirectInputStream, cast it; otherwise, create a
WrappedDirectInputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||