anon.shared
Class IOQueue

java.lang.Object
  extended by anon.shared.IOQueue

final class IOQueue
extends java.lang.Object


Field Summary
private  boolean bFull
           
private  boolean bReadClosed
           
private  byte[] buff
           
private static int BUFF_SIZE
           
private  boolean bWriteClosed
           
private  int readPos
           
private  int writePos
           
 
Constructor Summary
IOQueue()
           
 
Method Summary
 int available()
           
 void closeRead()
           
 void closeWrite()
           
 void finalize()
           
 int read()
           
 int read(byte[] in, int pos, int len)
           
 void write(byte[] in, int pos, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buff

private byte[] buff

readPos

private int readPos

writePos

private int writePos

bWriteClosed

private boolean bWriteClosed

bReadClosed

private boolean bReadClosed

BUFF_SIZE

private static final int BUFF_SIZE
See Also:
Constant Field Values

bFull

private boolean bFull
Constructor Detail

IOQueue

public IOQueue()
Method Detail

write

public void write(byte[] in,
                  int pos,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read(byte[] in,
                int pos,
                int len)
         throws java.io.IOException
Throws:
java.io.IOException

available

public int available()

closeWrite

public void closeWrite()

closeRead

public void closeRead()

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable