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 intREAD_COMPLETEstatic intREAD_CONTENTstatic intREAD_HEADERstatic intREAD_TRAILERstatic intWRITE_COMPLETEstatic intWRITE_CONTENTstatic intWRITE_HEADERstatic intWRITE_TRAILER
-
Constructor Summary
Constructors Constructor Description HL7Codec()HL7Codec(CharsetDecoder charsetDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecode(ByteBuffer dst, MLLPContext context)intencode(ByteBuffer outBuf, MLLPContext context)CharsetDecodergetCharsetDecoder()intgetState()booleanisReadComplete()booleanisWriteComplete()booleanisWriteTrailer()voidsetState(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:
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
public CharsetDecoder getCharsetDecoder()
-
-