public class MessageParser
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
MessageParser.ErrorHandler |
Constructor | Description |
---|---|
MessageParser(ProtocolFactory protocolFactory) |
|
MessageParser(ProtocolFactory protocolFactory,
java.lang.String stringAttributesEncoding) |
Modifier and Type | Method | Description |
---|---|---|
ProtocolFactory |
getFactory() |
|
Message |
parse(byte[] bytes) |
This method tries to extract Message object from the given byte array.
|
Message |
parse(byte[] bytes,
int pos,
int len) |
This method tries to extract Message object from the given byte array,
beginning from specified position.
|
void |
setErrorHandler(MessageParser.ErrorHandler errorHandler) |
Message parser can detect some errors which are not critical to message parsing.
|
public MessageParser(ProtocolFactory protocolFactory)
public MessageParser(ProtocolFactory protocolFactory, java.lang.String stringAttributesEncoding)
public ProtocolFactory getFactory()
public Message parse(byte[] bytes, int pos, int len) throws ProtocolException
bytes
- binary array containing representation of messagepos
- position where message (number of attributes byte) beginslen
- length of binary representationProtocolException
- if message can't be parsedpublic Message parse(byte[] bytes) throws ProtocolException
bytes
- binary array containing representation of messageProtocolException
- if message can't be parsedpublic void setErrorHandler(MessageParser.ErrorHandler errorHandler)
errorHandler
- error handler to report non-critical errorsSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.