com.aol.acc
Class AccStream

java.lang.Object
  extended by com.aol.acc.AccBase
      extended by com.aol.acc.AccStream

public class AccStream
extends AccBase

IAccStream is used for streaming data. Streams that implement this
interface will also implement IStream/ISequentialStream.


Method Summary
 byte[] read(int maxSize)
          Read a byte array from a stream
 void setAsyncListener(AccStreamListener piListener)
          Set the listener for this stream.

 int write(byte[] buffer)
          Write a byte array from a stream
 
Methods inherited from class com.aol.acc.AccBase
compareHandle, equals
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAsyncListener

public void setAsyncListener(AccStreamListener piListener)
                      throws AccException
Set the listener for this stream.

Throws:
AccException

read

public byte[] read(int maxSize)
            throws AccException
Read a byte array from a stream

Throws:
AccException

write

public int write(byte[] buffer)
          throws AccException
Write a byte array from a stream

Throws:
AccException