|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectec.util.DataPipe
public class DataPipe
Field Summary | |
---|---|
java.io.DataInputStream |
input
The input stream |
java.io.DataOutputStream |
output
The output stream |
Constructor Summary | |
---|---|
DataPipe()
|
Method Summary | |
---|---|
int |
numRead()
Returns the number of elements read from the buffer so far (after the last reset()). |
int |
numWritten()
Returns the number of elements written to the buffer so far (after the last reset()). |
void |
reset()
Reset the buffer. |
int |
size()
Returns the total size of the buffer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.io.DataInputStream input
public java.io.DataOutputStream output
Constructor Detail |
---|
public DataPipe()
Method Detail |
---|
public void reset()
public int size()
public int numWritten()
public int numRead()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |