fipaos.parser.acl.bitefficient
Class ACLInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--java.io.BufferedInputStream
|
+--fipaos.parser.acl.bitefficient.ACLInputStream
- public class ACLInputStream
- extends BufferedInputStream
- implements ACLConstants
InputStream that reads fipa-bitefficient-std coded ACL messages from
given InputStream.
- Author:
- Heikki Helin, Mikko Laukkanen
Field Summary |
(package private) byte[] | _b |
Methods inherited from class java.io.BufferedInputStream |
read, read, skip, available, mark, reset, markSupported, close |
Methods inherited from class java.io.FilterInputStream |
read |
Methods inherited from class java.lang.Object |
getClass, hashCode, equals, toString, notify, notifyAll, wait, wait, wait |
_b
byte[] _b
ACLInputStream
public ACLInputStream(InputStream i)
- Initialize the ACLInputStream. If this constructor is used,
the stream assumes that all messages are coded without
codetables.
- Parameters:
- i - The InputStream from where the messages are read.
ACLInputStream
public ACLInputStream(InputStream i, int sz)
- Initialize the ACLInputStream and associated codetable.
- Parameters:
- i - The InputStream from where the messages are read.
- sz - The size of the codetable (in bits)
ACLInputStream
public ACLInputStream(InputStream i, int sz, DecoderCodetable ct)
- FIXME: Remove size and add getSize to DecoderCodetable!
getCodeTable
public DecoderCodetable getCodeTable()
initialize
public void initialize(int sz)
readMsg
public ACL readMsg()
throws java.io.IOException,
BEParseException
- Reads an ACL message from the input stream.
- returns The ACL message read.
to Class fipaos.parser.acl.bitefficient.ACLPerformatives- as Conversion between communicative acts (legacy <->
bit-efficient)
to Class fipaos.parser.acl.bitefficient.DecoderCodetable
- ct Codetable
to Class fipaos.parser.acl.bitefficient.BinNumber
- bn Bit-efficient Number
to Class fipaos.parser.acl.util.ByteArray
- ba Buffer for parsing tokens
to Class fipaos.parser.acl.util.ByteArray
- bb Buffer for parsing numbers
to Class fipaos.ont.fipa.ACL
- m ACLMessage to which the parsed message is stored
to Class fipaos.parser.acl.bitefficient.ACLInputStream.ExprParser
- ex Expression parser