org.dicom4j.io
Class DicomInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.dicom4j.io.BinaryInputStream
              extended by org.dicom4j.io.DicomInputStream
All Implemented Interfaces:
Closeable

public class DicomInputStream
extends BinaryInputStream

Extends BinaryInputStream by adding the concept of transfer syntaxes

Author:
Laurent Lecomte

Constructor Summary
DicomInputStream(InputStream aInput)
           Construct a stream to read DICOM data sets from the supplied stream.
DicomInputStream(InputStream aStream, TransferSyntax aTransferSyntax)
           
 
Method Summary
 TransferSyntax getTransferSyntax()
           
 boolean isExplicitVR()
           Is the transfer syntax use explicit VR ?
 void setTransferSyntax(TransferSyntax aTransferSyntax)
           
 
Methods inherited from class org.dicom4j.io.BinaryInputStream
getByteOrder, read, readASCII, readBoolean, readByte, readComplexDouble, readComplexFloat, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readInsistently, readSigned16, readSigned32, readString, readUnsigned16, readUnsigned16, readUnsigned16, readUnsigned32, readUnsigned8, readUnsignedByte, readUnsignedShort, setByteOrder, skip
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DicomInputStream

public DicomInputStream(InputStream aInput)

Construct a stream to read DICOM data sets from the supplied stream.

Look for a meta information header; if absent guess at a transfer syntax based on the contents.

Parameters:
i - the input stream to read from
Throws:
IOException

DicomInputStream

public DicomInputStream(InputStream aStream,
                        TransferSyntax aTransferSyntax)
Method Detail

getTransferSyntax

public TransferSyntax getTransferSyntax()

isExplicitVR

public boolean isExplicitVR()

Is the transfer syntax use explicit VR ?

Returns:
true if explicit VR

setTransferSyntax

public void setTransferSyntax(TransferSyntax aTransferSyntax)


Copyright © 2009 dicom4j. All Rights Reserved.