|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.io.DicomReader
org.dicom4j.io.file.DicomFileReader
public class DicomFileReader
A specialized DicomReader to read DICOM Files.
This class add specialized methods to manage theFileMetaInformation
| Constructor Summary | |
|---|---|
DicomFileReader(byte[] aBytes)
Creates a new DicomReader |
|
DicomFileReader(File aFile)
Creates a new DicomFileReader |
|
DicomFileReader(InputStream aInputStream)
Creates a new DicomReader |
|
DicomFileReader(String aPathName)
Creates a new DicomFileReader |
|
| Method Summary | |
|---|---|
TransferSyntaxFactory |
getTsFactory()
|
boolean |
hasFileMetaInformation()
return true if the stream contains FileMetaInformation |
void |
readFile(FileMetaInformation aFileMetaInformation,
DataSet aDataSet)
Read the FileMetaInformation and the DataSet of a DICOM File. |
void |
readFileMetaInformation(FileMetaInformation aFileMetaInformation)
Read the FileMetaInformation of a DICOM File. |
void |
setTsFactory(TransferSyntaxFactory tsFactory)
|
| Methods inherited from class org.dicom4j.io.DicomReader |
|---|
close, getDictionary, getVrFactory, read, read, setDictionary, setInputStream, setVrFactory |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DicomFileReader(byte[] aBytes)
aBytes - the bytes to read from
public DicomFileReader(File aFile)
throws FileNotFoundException
File - the file to read
FileNotFoundExceptionpublic DicomFileReader(InputStream aInputStream)
aInputStream - the stream to read from
public DicomFileReader(String aPathName)
throws FileNotFoundException
aPathName - the pathname of the file to read
FileNotFoundException| Method Detail |
|---|
public boolean hasFileMetaInformation()
throws IOException,
DicomException
FileMetaInformation
IOException
DicomException
public void readFile(FileMetaInformation aFileMetaInformation,
DataSet aDataSet)
throws IOException,
DicomException,
Exception
aFileMetaInformation - the FileMetaInformation where to add read data (can be null)aDataSet - the DataSet where to add read data
IOException
DicomException
Exception
public void readFileMetaInformation(FileMetaInformation aFileMetaInformation)
throws IOException,
DicomException,
Exception
aFileMetaInformation - the FileMetaInformation where to add read data
IOException
DicomException
Exceptionpublic TransferSyntaxFactory getTsFactory()
public void setTsFactory(TransferSyntaxFactory tsFactory)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||