public interface IDicomStream
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes available on the stream
|
int |
close()
Closes the stream.
|
boolean |
endSend()
Shows the end of sending process.
|
int |
getEndianNess()
Retrieves the endianNess of the stream.
|
int |
getReadBytes()
Keeps track of how much bytes are read from the stream
|
int |
getStream()
Retrieves the stream.
|
int |
mark(int iReadAheadLimit)
Marks the stream for further resetting with specified limit.
|
int |
readBuffer(byte[] arrbyte)
Reads reads buffer byte per byte from stream
|
byte |
readByte()
Reads a single byte from the stream
|
byte[] |
readChars(int iLength)
Reads specified number of characters from the stream
|
double |
readDouble()
Reads a double from the stream
|
float |
readFloat()
Reads a float from the stream
|
int |
readInt()
Reads an integer from the stream
|
long |
readLong()
Reads a long from stream.
|
short |
readShort()
Reads a short from the stream
|
java.lang.String |
readString(int intVar)
Reads a string from the stream with specified length
|
byte[] |
readWord()
Reads a word from stream
|
int |
reset()
Resets the stream to a specific marked position.
|
int |
setEndianNess(int iEndianNess)
Sets the endianess of the steam [BIG_ENDIAN/LITTLE_ENDIAN]
Endianness defines the byte ordering used to store values as bytes in computer memory.
|
int |
skip(int iNumBytes)
Skips the specified number of bytes.
|
boolean |
startReceive()
Shows the beginning of receiving process.
|
boolean |
writeBuffer(byte[] arrbyte,
int iOffset,
int iLength)
Writes the data to the buffer.
|
int |
writeByte(byte bVar)
Writes a byte to the stream
|
int |
writeChars(byte[] arrChar)
Writes array of charactors to the stream
|
int |
writeDouble(double dVar)
Writes a double value to the stream
|
int |
writeFloat(float fVar)
Writes a float value to the stream
|
int |
writeInt(int nVar)
Writes an int value to the stream
|
int |
writeLong(int iVar)
Writes an Long value to the stream
|
int |
writeShort(short shtVar)
Writes a short value on to the stream
|
int |
writeString(java.lang.String s)
Writes an String value to the stream
|
int |
writeWord(byte[] byteVal)
Writes a word to the stream
|
int getStream()
boolean writeBuffer(byte[] arrbyte,
int iOffset,
int iLength)
throws java.io.IOException
arrbyte - Byte array containing data.iOffset - integer value shows offset.iLength - integer value shows length.java.io.IOException - if Input/Output operation fails.int writeByte(byte bVar)
throws java.io.IOException
bVar - Byte value.java.io.IOException - if Input/Output operation fails.int writeShort(short shtVar)
throws java.io.IOException
shtVar - short value to write.java.io.IOException - If IO operation fails.int writeDouble(double dVar)
throws java.io.IOException
dVar - Shows double value to write.java.io.IOException - If IO operation fails.int writeFloat(float fVar)
throws java.io.IOException
fVar - Shows float value to write.java.io.IOException - If IO operation fails.int writeInt(int nVar)
throws java.io.IOException
nVar - integer value to write.java.io.IOException - If IO operation fails.int writeLong(int iVar)
throws java.io.IOException
iVar - integer value to write.java.io.IOException - If IO operation fails.int writeString(java.lang.String s)
throws java.io.IOException
s - String value to write.java.io.IOException - If IO operation fails.int writeChars(byte[] arrChar)
throws java.io.IOException
arrChar - Array of charactors value to write.java.io.IOException - If IO operation fails.int writeWord(byte[] byteVal)
throws java.io.IOException
byteVal - Array of Byte value to write.java.io.IOException - If IO operation fails.long readLong()
throws java.io.IOException
java.io.IOException - If IO operation fails.int readInt()
throws java.io.IOException
java.io.IOException - If IO operation fails.float readFloat()
throws java.io.IOException
java.io.IOException - If IO operation fails.double readDouble()
throws java.io.IOException
java.io.IOException - If IO operation fails.byte readByte()
throws java.io.IOException
java.io.IOException - If IO operation fails.short readShort()
throws java.io.IOException
java.io.IOException - If IO operation fails.java.lang.String readString(int intVar)
throws java.io.IOException
intVar - Integer value shows length of string to read.java.io.IOException - If IO operation fails.byte[] readChars(int iLength)
throws java.io.IOException
iLength - integer value shows no. of characters to read.java.io.IOException - If IO operation fails.int readBuffer(byte[] arrbyte)
throws java.io.IOException
arrbyte - Byte array populated by stream.java.io.IOException - If IO operation fails.byte[] readWord()
throws java.io.IOException
java.io.IOException - If IO operation fails.boolean startReceive()
boolean endSend()
throws java.io.IOException
java.io.IOException - Exception if IO operation fails.int setEndianNess(int iEndianNess)
iEndianNess - Integer value shows endianNess.int getEndianNess()
int getReadBytes()
int skip(int iNumBytes)
throws java.io.IOException
iNumBytes - Integer value shows no. of bytes to skip.java.io.IOException - Exception if IO operation fails.int mark(int iReadAheadLimit)
iReadAheadLimit - integer number of bytes to mark.int reset()
throws java.io.IOException
java.io.IOException - Exception if IO operation fails.int available()
throws java.io.IOException
java.io.IOException - Exception if IO operation fails.int close()
throws java.io.IOException
java.io.IOException - Exception if IO operation fails.