|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.dyade.aaa.util.Pipe
| Field Summary | |
protected java.lang.Object[] |
buffer
The circular buffer into which incoming data is placed. |
static int |
DFLT_BUF_SIZE
|
static java.lang.String |
DFLT_DIR
|
static java.lang.String |
DFLT_NAME
|
protected java.io.RandomAccessFile |
fbufin
|
protected long |
fbufinptr
The index of the position in the file buffer at which the next piece of data will be read. |
protected java.io.RandomAccessFile |
fbufout
|
protected long |
fbufoutptr
The index of the position in the file buffer at which the next piece of data will be write. |
protected int |
in
The index of the position in the circular buffer at which the next byte of data will be stored when received from the connected piped output stream. |
protected java.lang.String |
name
|
protected int |
out
The index of the position in the circular buffer at which the next byte of data will be read by this piped input stream. |
protected int |
size
|
| Constructor Summary | |
Pipe()
Creates a Pipe with default size for memory buffer. |
|
Pipe(int size,
java.lang.String name,
java.lang.String dir)
Creates a Pipe with specified size for in memory buffer. |
|
| Method Summary | |
int |
getBufferSize()
|
int |
getSizeInFile()
|
int |
read(java.lang.Object[] buf)
|
void |
write(byte[] msg)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected int size
protected int in
in<0 implies the buffer is empty,
in==out implies the buffer is full
protected int out
public static final int DFLT_BUF_SIZE
public static final java.lang.String DFLT_NAME
public static final java.lang.String DFLT_DIR
protected java.lang.Object[] buffer
protected long fbufinptr
protected long fbufoutptr
in<0 implies the buffer is empty.
protected java.io.RandomAccessFile fbufin
protected java.io.RandomAccessFile fbufout
| Constructor Detail |
public Pipe()
throws java.io.IOException
Pipe with default size for memory buffer.
public Pipe(int size,
java.lang.String name,
java.lang.String dir)
throws java.io.IOException
Pipe with specified size for in memory buffer.
size - the size for in memory buffer.| Method Detail |
public final int getBufferSize()
public final int getSizeInFile()
public void write(byte[] msg)
throws java.io.IOException
java.io.IOException
public int read(java.lang.Object[] buf)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||