Class HL7Codec
java.lang.Object
org.wso2.carbon.inbound.endpoint.protocol.hl7.codec.HL7Codec
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecode(ByteBuffer dst, MLLPContext context) intencode(ByteBuffer outBuf, MLLPContext context) intgetState()booleanbooleanbooleanvoidsetState(int state)
-
Field Details
-
READ_HEADER
public static final int READ_HEADER- See Also:
-
READ_CONTENT
public static final int READ_CONTENT- See Also:
-
READ_TRAILER
public static final int READ_TRAILER- See Also:
-
READ_COMPLETE
public static final int READ_COMPLETE- See Also:
-
WRITE_HEADER
public static final int WRITE_HEADER- See Also:
-
WRITE_CONTENT
public static final int WRITE_CONTENT- See Also:
-
WRITE_TRAILER
public static final int WRITE_TRAILER- See Also:
-
WRITE_COMPLETE
public static final int WRITE_COMPLETE- See Also:
-
-
Constructor Details
-
HL7Codec
public HL7Codec() -
HL7Codec
-
-
Method Details
-
decode
public int decode(ByteBuffer dst, MLLPContext context) throws IOException, MLLProtocolException, ca.uhn.hl7v2.HL7Exception - Throws:
IOExceptionMLLProtocolExceptionca.uhn.hl7v2.HL7Exception
-
encode
public int encode(ByteBuffer outBuf, MLLPContext context) throws ca.uhn.hl7v2.HL7Exception, IOException - Throws:
ca.uhn.hl7v2.HL7ExceptionIOException
-
isReadComplete
public boolean isReadComplete() -
isWriteTrailer
public boolean isWriteTrailer() -
isWriteComplete
public boolean isWriteComplete() -
getState
public int getState() -
setState
public void setState(int state) -
getCharsetDecoder
-