|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.io.DicomReader
public class DicomReader
Class to read a DataSet from a stream or bytes
| Constructor Summary | |
|---|---|
DicomReader(byte[] aBytes)
Creates a new DicomReader |
|
DicomReader(InputStream aInputStream)
Creates a new DicomReader |
|
| Method Summary | |
|---|---|
void |
close()
|
DicomDictionary |
getDictionary()
|
ValueRepresentationFactory |
getVrFactory()
|
void |
read(DataSet dataSet,
TransferSyntax transferSyntax)
Read all data from the stream |
void |
read(DataSet dataSet,
TransferSyntax aTransferSyntax,
DicomTag aDataElementTag)
Read all data from the stream until the specified tag is encountered. |
void |
setDictionary(DicomDictionary dictionary)
to set the DicomDictionary to used when reading a file. |
InputStream |
setInputStream(InputStream stream)
|
void |
setVrFactory(ValueRepresentationFactory vrFactory)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DicomReader(byte[] aBytes)
aBytes - the bytes to read frompublic DicomReader(InputStream aInputStream)
aInputStream - the stream to read from| Method Detail |
|---|
public void close()
public InputStream setInputStream(InputStream stream)
public void read(DataSet dataSet,
TransferSyntax transferSyntax)
throws IOException,
DicomException,
Exception
Read all data from the stream
IOException
DicomException
Exception
public void read(DataSet dataSet,
TransferSyntax aTransferSyntax,
DicomTag aDataElementTag)
throws IOException,
DicomException,
Exception
Read all data from the stream until the specified tag is encountered.
i - the stream to read fromaDataElementTag - the DataElementTag at which to stop
IOException
DicomException
Exceptionpublic DicomDictionary getDictionary()
public void setDictionary(DicomDictionary dictionary)
DicomDictionary to used when reading a file. Null can be provided is no dictionary should be used
dictionary - public ValueRepresentationFactory getVrFactory()
public void setVrFactory(ValueRepresentationFactory vrFactory)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||