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. |
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 |
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.
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)
to Class fipaos.parser.acl.bitefficient.ACLEncoder
to Class fipaos.parser.acl.util.ByteArray