public class DirWriter extends DirReader
| Modifier and Type | Method and Description |
|---|---|
Attributes |
addLowerDirectoryRecord(Attributes parentRec,
Attributes rec) |
Attributes |
addRootDirectoryRecord(Attributes rec) |
void |
clearCache() |
void |
close() |
void |
commit() |
static void |
createEmptyDirectory(File file,
Attributes fmi,
String id,
File descFile,
String charset) |
static void |
createEmptyDirectory(File file,
String iuid,
String id,
File descFile,
String charset) |
boolean |
deleteRecord(Attributes rec) |
Attributes |
findOrAddPatientRecord(Attributes rec) |
Attributes |
findOrAddSeriesRecord(Attributes studyRec,
Attributes rec) |
Attributes |
findOrAddStudyRecord(Attributes patRec,
Attributes rec) |
ImageEncodingOptions |
getEncodingOptions() |
static DirWriter |
open(File file) |
int |
purge() |
void |
rollback() |
void |
setEncodingOptions(ImageEncodingOptions encOpts) |
String[] |
toFileIDs(File f) |
findFirstRootDirectoryRecordInUse, findLastLowerDirectoryRecord, findLowerDirectoryRecord, findLowerDirectoryRecordInUse, findLowerInstanceRecord, findLowerInstanceRecord, findNextDirectoryRecord, findNextDirectoryRecordInUse, findNextInstanceRecord, findNextInstanceRecord, findNextPatientRecord, findNextPatientRecord, findNextSeriesRecord, findNextSeriesRecord, findNextStudyRecord, findNextStudyRecord, findPatientRecord, findPatientRecord, findRootDirectoryRecord, findRootDirectoryRecord, findRootInstanceRecord, findSeriesRecord, findSeriesRecord, findStudyRecord, findStudyRecord, getDescriptorFile, getDescriptorFileCharacterSet, getFile, getFileMetaInformation, getFileSetConsistencyFlag, getFileSetID, getFileSetInformation, getFileSetUID, getOffsetOfFirstRootDirectoryRecord, getOffsetOfLastRootDirectoryRecord, getTransferSyntaxUID, inUse, isEmpty, isPrivate, knownInconsistencies, readFirstRootDirectoryRecord, readLastRootDirectoryRecord, readLowerDirectoryRecord, readNextDirectoryRecord, setFileSetConsistencyFlag, setOffsetOfFirstRootDirectoryRecord, setOffsetOfLastRootDirectoryRecord, toFilepublic static DirWriter open(File file) throws IOException
IOExceptionpublic static void createEmptyDirectory(File file, String iuid, String id, File descFile, String charset) throws IOException
IOExceptionpublic static void createEmptyDirectory(File file, Attributes fmi, String id, File descFile, String charset) throws IOException
IOExceptionpublic ImageEncodingOptions getEncodingOptions()
public void setEncodingOptions(ImageEncodingOptions encOpts)
public Attributes addRootDirectoryRecord(Attributes rec) throws IOException
IOExceptionpublic Attributes addLowerDirectoryRecord(Attributes parentRec, Attributes rec) throws IOException
IOExceptionpublic Attributes findOrAddPatientRecord(Attributes rec) throws IOException
IOExceptionpublic Attributes findOrAddStudyRecord(Attributes patRec, Attributes rec) throws IOException
IOExceptionpublic Attributes findOrAddSeriesRecord(Attributes studyRec, Attributes rec) throws IOException
IOExceptionpublic boolean deleteRecord(Attributes rec) throws IOException
IOExceptionpublic void rollback()
throws IOException
IOExceptionpublic void clearCache()
clearCache in class DirReaderpublic void commit()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class DirReaderIOExceptionpublic int purge()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.