public class StandardUtilityMethods
extends java.lang.Object
| Constructor and Description |
|---|
StandardUtilityMethods() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createReplicateStream(IHL7Stream objHL7BufferStream,
byte[] readBytes)
This method takes object of HL7buffer stream and returns out the byteArrayInputStream by making replica of received stream.
|
static java.lang.String |
getControlID(byte[] buffer) |
static Segment |
getMessageBatchHeader(IHL7Stream objHL7BufferStream) |
public static java.lang.String getControlID(byte[] buffer)
throws java.io.IOException
java.io.IOExceptionpublic static Segment getMessageBatchHeader(IHL7Stream objHL7BufferStream) throws java.io.IOException, ParseException
objHL7BufferStream - Object of HL7Stream class.java.io.IOException - When IOexception fails.ParseException - when Processing of Stream Fails.public static byte[] createReplicateStream(IHL7Stream objHL7BufferStream, byte[] readBytes)
objHL7BufferStream - - object of HL7BufferStreambyte[] - for the received Buffer.