public class DicomBufferStream extends DicomStream
| Constructor and Description |
|---|
DicomBufferStream()
Default Constructor for BufferStream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
setBufferStream(java.io.ByteArrayInputStream objByteArrayInputStream,
java.io.ByteArrayOutputStream objByteArrayOutputStream)
Sets the Buffer Stream.
|
int |
setInputStream(java.io.ByteArrayInputStream objByteArrayInputStream)
Sets the Input Stream.
|
int |
setOutputStream(java.io.ByteArrayOutputStream objByteArrayOutputStream)
Sets the Output Stream.
|
byte[] |
toByteArray()
This method retrieves the internal buffer of the ByteArrayOutputStream.
|
java.lang.String |
toString()
This method converts the buffer's contents into a string, translating bytes into characters according to the platform's default character encoding.
|
available, close, endSend, getEndianNess, getReadBytes, getStream, mark, readBuffer, readByte, readChar, readChars, readDouble, readFloat, readInt, readLong, readShort, readString, readWord, reset, setEndianNess, skip, startReceive, writeBuffer, writeByte, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeString, writeWordpublic DicomBufferStream()
public int setInputStream(java.io.ByteArrayInputStream objByteArrayInputStream)
objByteArrayInputStream - Object of ByteArrayInputStream.public int setOutputStream(java.io.ByteArrayOutputStream objByteArrayOutputStream)
objByteArrayOutputStream - Object of ByteArrayOutputStream.public int setBufferStream(java.io.ByteArrayInputStream objByteArrayInputStream,
java.io.ByteArrayOutputStream objByteArrayOutputStream)
objByteArrayInputStream - Object of ByteArrayInputStream.objByteArrayOutputStream - Object of ByteArrayOutputStream.public byte[] toByteArray()
public java.lang.String toString()
toString in class java.lang.Object