|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
org.dicom4j.io.media.DicomFile
public class DicomFile
class to Read/Write DICOM files stored on a FileSystem (extends the java's File by adding specifics methods for Dicom files)
| Field Summary |
|---|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
DicomFile(File aFile)
creates a new file |
|
DicomFile(String aAbsolutePath)
creates a new file |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
containFileMetaInformation()
|
DataSet |
getDataset()
get the DataSet |
FileMetaInformation |
getFileMetaInformation()
get the FileMetaInformation |
TransferSyntaxFactory |
getTransferSyntaxFactory()
return the current factory |
boolean |
isOpen()
return true if currently open |
void |
open()
Open the File |
void |
save()
|
void |
save(TransferSyntax transferSyntax)
|
void |
setTransferSyntaxFactory(TransferSyntaxFactory transferSyntaxFactory)
set the TransferSyntaxFactory to use. |
| Methods inherited from class java.io.File |
|---|
canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DicomFile(File aFile)
aFile - the Filepublic DicomFile(String aAbsolutePath)
aAbsolutePath - the AbsolutePath| Method Detail |
|---|
public void close()
throws IOException,
DicomException
IOException
DicomExceptionpublic DataSet getDataset()
DataSet
public FileMetaInformation getFileMetaInformation()
FileMetaInformation
public boolean containFileMetaInformation()
public boolean isOpen()
public void open()
throws IOException,
DicomException,
Exception
IOException
DicomException
Exception
public void save()
throws IOException,
DicomException,
Exception
IOException
DicomException
Exception
public void save(TransferSyntax transferSyntax)
throws IOException,
DicomException
IOException
DicomExceptionpublic TransferSyntaxFactory getTransferSyntaxFactory()
public void setTransferSyntaxFactory(TransferSyntaxFactory transferSyntaxFactory)
TransferSyntaxFactory to use.the factory is used to get a TransferSyntax depending of the Transfer Syntax UID Element
of the FileMetaInformation
transferSyntaxFactory - the factory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||