fipaos.parser.acl.bitefficient
Class ACLOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--java.io.BufferedOutputStream
                    |
                    +--fipaos.parser.acl.bitefficient.ACLOutputStream

public class ACLOutputStream
extends BufferedOutputStream

OutputStream that writes fipa-bitefficient-std coded messages into stream.

Author:
Heikki Helin, Mikko Laukkanen

Constructor Summary
ACLOutputStream(OutputStream o)
          Initialise the ACL output stream with given OutputStream.
ACLOutputStream(OutputStream o, int sz)
          Initialise the ACL output stream with given OutputStream and
codetable size.

Method Summary
 EncoderCodetablegetCodeTable()
           
 voidinitialize(int sz)
           
 voidwrite(ACL m)
          Writes ACL message to output stream
 voidwrite(ACL m, byte c)
          Writes ACL message output stream using specified coding.

Methods inherited from class java.io.BufferedOutputStream
write, write, flush

Methods inherited from class java.io.FilterOutputStream
write, close

Methods inherited from class java.lang.Object
getClass, hashCode, equals, toString, notify, notifyAll, wait, wait, wait

Constructor Detail

ACLOutputStream

public ACLOutputStream(OutputStream o)
Initialise the ACL output stream with given OutputStream.
parameter o OutputStream to which message are written.

ACLOutputStream

public ACLOutputStream(OutputStream o, int sz)
Initialise the ACL output stream with given OutputStream and
codetable size.
parameter o OutputStream to which message are written., sz Size for the code table.
Method Detail

getCodeTable

public EncoderCodetable getCodeTable()

initialize

public void initialize(int sz)

write

public void write(ACL m)
throws java.io.IOException
Writes ACL message to output stream
Parameters:
m - Message to be written

write

public void write(ACL m, byte c)
throws java.io.IOException
Writes ACL message output stream using specified coding.
Parameters:
m - Message to be written
c - Coding scheme (ACL_BITEFFICIENT_CODETABLE or
ACL_BITEFFICIENT_NO_CODETABLE)

Association Links

to Class fipaos.parser.acl.bitefficient.ACLEncoder