Class HL7Codec
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.protocol.hl7.codec.HL7Codec
-
public class HL7Codec extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
READ_COMPLETE
static int
READ_CONTENT
static int
READ_HEADER
static int
READ_TRAILER
static int
WRITE_COMPLETE
static int
WRITE_CONTENT
static int
WRITE_HEADER
static int
WRITE_TRAILER
-
Constructor Summary
Constructors Constructor Description HL7Codec()
HL7Codec(CharsetDecoder charsetDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decode(ByteBuffer dst, MLLPContext context)
int
encode(ByteBuffer outBuf, MLLPContext context)
CharsetDecoder
getCharsetDecoder()
int
getState()
boolean
isReadComplete()
boolean
isWriteComplete()
boolean
isWriteTrailer()
void
setState(int state)
-
-
-
Field Detail
-
READ_HEADER
public static final int READ_HEADER
- See Also:
- Constant Field Values
-
READ_CONTENT
public static final int READ_CONTENT
- See Also:
- Constant Field Values
-
READ_TRAILER
public static final int READ_TRAILER
- See Also:
- Constant Field Values
-
READ_COMPLETE
public static final int READ_COMPLETE
- See Also:
- Constant Field Values
-
WRITE_HEADER
public static final int WRITE_HEADER
- See Also:
- Constant Field Values
-
WRITE_CONTENT
public static final int WRITE_CONTENT
- See Also:
- Constant Field Values
-
WRITE_TRAILER
public static final int WRITE_TRAILER
- See Also:
- Constant Field Values
-
WRITE_COMPLETE
public static final int WRITE_COMPLETE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HL7Codec
public HL7Codec()
-
HL7Codec
public HL7Codec(CharsetDecoder charsetDecoder)
-
-
Method Detail
-
decode
public int decode(ByteBuffer dst, MLLPContext context) throws IOException, MLLProtocolException, ca.uhn.hl7v2.HL7Exception
- Throws:
IOException
MLLProtocolException
ca.uhn.hl7v2.HL7Exception
-
encode
public int encode(ByteBuffer outBuf, MLLPContext context) throws ca.uhn.hl7v2.HL7Exception, IOException
- Throws:
ca.uhn.hl7v2.HL7Exception
IOException
-
isReadComplete
public boolean isReadComplete()
-
isWriteTrailer
public boolean isWriteTrailer()
-
isWriteComplete
public boolean isWriteComplete()
-
getState
public int getState()
-
setState
public void setState(int state)
-
getCharsetDecoder
public CharsetDecoder getCharsetDecoder()
-
-