public class FragmentAgent extends java.lang.Object implements IFragmentProcessor
| Constructor and Description |
|---|
FragmentAgent()
Instantiates a new fragment agent.
|
| Modifier and Type | Method and Description |
|---|---|
HL7BufferStream |
defragment(HL7BufferStream objHL7BufferStream)
Defragments The HL7BufferStream and returns Defragmented HL7BufferStream.
|
ISingleCollection<HL7BufferStream> |
fragment(HL7BufferStream objHL7BufferStream)
Fragments The HL7BufferStream and returns Fragmented HL7BufferStream.
|
void |
setMaxLength(int iLength)
Sets maximum length for fragments.
|
public void setMaxLength(int iLength)
setMaxLength in interface IFragmentProcessoriLength - value of maximum fragment length.public ISingleCollection<HL7BufferStream> fragment(HL7BufferStream objHL7BufferStream) throws java.io.IOException
fragment in interface IFragmentProcessorobjHL7BufferStream - HL7BufferStream to fragment.java.io.IOException - Thrown when IO operation fails.public HL7BufferStream defragment(HL7BufferStream objHL7BufferStream) throws java.io.IOException
defragment in interface IFragmentProcessorobjHL7BufferStream - HL7BufferStream to defragment.java.io.IOException - Thrown when IO operation fails.