|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
edu.rice.cs.plt.io.DirectOutputStream
edu.rice.cs.plt.io.WrappedDirectOutputStream
public class WrappedDirectOutputStream
An implementation of DirectOutputStream that inherits that class's default implementations
and delegates all other operations to the wrapped OutputStream.
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.plt.io.DirectOutputStream |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
WrappedDirectOutputStream(java.io.OutputStream stream)
|
|
| Method Summary | |
|---|---|
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. |
void |
flush()
|
static DirectOutputStream |
makeDirect(java.io.OutputStream stream)
If the input is a DirectOutputStream, cast it; otherwise, create a
WrappedDirectOutputStream. |
void |
write(byte[] bbuf)
Delegate to the more general DirectOutputStream.write(byte[], int, int) method |
void |
write(byte[] bbuf,
int offset,
int length)
Subclasses are, at a minimum, required to implement this method. |
void |
write(int b)
Delegate to the more general DirectOutputStream.write(byte[], int, int) method |
| Methods inherited from class edu.rice.cs.plt.io.DirectOutputStream |
|---|
write, write, write, writeAll, writeAll, writeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedDirectOutputStream(java.io.OutputStream stream)
| Method Detail |
|---|
public int compositeHeight()
Composite
compositeHeight in interface Compositepublic int compositeSize()
Composite
compositeSize in interface Composite
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
DirectOutputStreamDirectOutputStream.write(byte[], int, int) method
write in class DirectOutputStreamjava.io.IOException
public void write(byte[] bbuf)
throws java.io.IOException
DirectOutputStreamDirectOutputStream.write(byte[], int, int) method
write in class DirectOutputStreamjava.io.IOException
public void write(byte[] bbuf,
int offset,
int length)
throws java.io.IOException
DirectOutputStream
write in class DirectOutputStreamjava.io.IOExceptionpublic static DirectOutputStream makeDirect(java.io.OutputStream stream)
DirectOutputStream, cast it; otherwise, create a
WrappedDirectOutputStream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||