public class DicomParser
extends java.lang.Object
| Constructor and Description |
|---|
DicomParser()
Defines a DicomParser with default initialization.
|
| Modifier and Type | Method and Description |
|---|---|
IDictionaryReader |
getDictionaryReader()
This method returns the dictionary reader set in the dicom parser.
|
IDicomFileHeader |
getFileHeader()
Gets the file header.
|
IDataSet |
parseAsPart10File(IDicomStream objIDicomStream,
boolean asIs)
This method initiates the process of parsing Dicom Stream.
|
IDataSet |
parseAsPart10File(java.lang.String strFileName,
boolean asIs)
This method initiates the process of parsing a given file.
|
IDataSet |
parseDataContents(IDicomStream objIDicomStream,
boolean asIs)
The implementation of this method parses the DataSet from the given Stream.
|
void |
setDictionaryReader(IDictionaryReader objIDictReader)
This method sets Dicom Parser's Dictionary Reader.
|
void |
setTransferSyntax(ITransferSyntax objITXSyntax)
This method sets Dicom Parser's TransferSyntax.
|
public DicomParser()
public void setTransferSyntax(ITransferSyntax objITXSyntax)
objITXSyntax - the object of itx syntax.public void setDictionaryReader(IDictionaryReader objIDictReader)
objIDictReader - the object of i dict reader.public IDictionaryReader getDictionaryReader()
public IDataSet parseAsPart10File(java.lang.String strFileName, boolean asIs) throws ParseException, java.io.IOException
strFileName - file path to be parsed.asIs - the as is.ParseException - the parse exception.java.io.IOException - Signals that an I/O exception has occurred.public IDataSet parseAsPart10File(IDicomStream objIDicomStream, boolean asIs) throws ParseException, java.io.IOException
objIDicomStream - - The stream which is to be parsed into Dicom DataSet.asIs - the as is.ParseException - the parse exception.java.io.IOException - Signals that an I/O exception has occurred.public IDataSet parseDataContents(IDicomStream objIDicomStream, boolean asIs) throws ParseException, java.io.IOException
objIDicomStream - Stream on which the DICOM data is available.asIs - the as isParseException - If parsing fails.java.io.IOException - If Input/Output operation fails.public IDicomFileHeader getFileHeader() throws java.io.IOException
java.io.IOException - Signals that an I/O exception has occurred.