public abstract class HL7Stream extends java.lang.Object implements IHL7Stream
| Constructor and Description |
|---|
HL7Stream() |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes available on the input stream.
|
int |
close()
Closes the Streams.
|
boolean |
endSend()
Checks end of Stream.
|
int |
getReadBytes()
Tracks bytes read from the stream.
|
int |
getStream()
Returns the stream type to which it is set to [InputStream/outputStream].
|
int |
mark(int iReadAheadLimit)
Marks the stream for further resetting with specified readAheadLimit.
|
int |
readBuffer(byte[] arrbyte)
Reads buffer byte by byte from stream.
|
byte |
readByte()
Reads a single byte from the stream.
|
char |
readChar()
Reads a char from the stream.
|
int |
readString(java.lang.StringBuffer strBuffValue,
int iCount)
Reads a string from the stream with specified length.
|
int |
reset()
Resets the stream if stream is read further within the readAheadLimit.
|
int |
skip(int iNumBytes)
Skips the number of bytes specified in the parameter.
|
boolean |
startReceive()
Checks receiving of Stream.
|
int |
writeBuffer(byte[] arrbyte,
int iOffset,
int iLength)
Writes Byte array to the DataOutputStream.
|
int |
writeByte(byte byteVal)
Writes a byte to the stream.
|
int |
writeChar(char charVal)
Writes a character with specified endianNess to the stream.
|
int |
writeString(java.lang.String strValue)
Writes the string specified in the parameter on the stream.
|
public int getStream()
getStream in interface IHL7Streampublic int getReadBytes()
getReadBytes in interface IHL7Streampublic byte readByte()
readByte in interface IHL7Streampublic char readChar()
readChar in interface IHL7Streampublic int readString(java.lang.StringBuffer strBuffValue,
int iCount)
readString in interface IHL7StreamstrBuffValue - length of the string to be readiCount - specified lengthpublic int writeString(java.lang.String strValue)
writeString in interface IHL7StreamstrValue - the String to writepublic int readBuffer(byte[] arrbyte)
readBuffer in interface IHL7Streamarrbyte - byte of bufferpublic int writeByte(byte byteVal)
writeByte in interface IHL7StreambyteVal - byte to writepublic int writeChar(char charVal)
writeChar in interface IHL7StreamcharVal - character to writepublic int writeBuffer(byte[] arrbyte,
int iOffset,
int iLength)
writeBuffer in interface IHL7Streamarrbyte - byte array to writeiOffset - the start offset in the dataiLength - the number of bytes to writepublic boolean startReceive()
IHL7StreamstartReceive in interface IHL7Streampublic boolean endSend()
IHL7StreamendSend in interface IHL7Streampublic int mark(int iReadAheadLimit)
mark in interface IHL7StreamiReadAheadLimit - public int reset()
reset in interface IHL7Streampublic int skip(int iNumBytes)
iNumBytes - public int available()
available in interface IHL7Streampublic int close()