Package org.aoju.bus.image.galaxy
Class DirReader
java.lang.Object
org.aoju.bus.image.galaxy.DirReader
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
DirWriter
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Capacity<Attributes> protected final Fileprotected final Attributesprotected final Attributesprotected final ImageInputStreamprotected final RandomAccessFile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()findFirstRootDirectoryRecordInUse(boolean ignorePrivate) protected AttributesfindLowerDirectoryRecord(Attributes rec, boolean ignorePrivate, Attributes keys, boolean ignoreCaseOfPN, boolean matchNoValue) findLowerDirectoryRecordInUse(Attributes rec, boolean ignorePrivate) findLowerInstanceRecord(Attributes seriesRec, boolean ignorePrivate, String... iuids) findLowerInstanceRecord(Attributes seriesRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findNextDirectoryRecord(Attributes rec, boolean ignorePrivate, Attributes keys, boolean ignoreCaseOfPN, boolean matchNoValue) findNextDirectoryRecordInUse(Attributes rec, boolean ignorePrivate) findNextInstanceRecord(Attributes instRec, boolean ignorePrivate, String... iuids) findNextInstanceRecord(Attributes instRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findNextPatientRecord(Attributes patRec, String... ids) findNextPatientRecord(Attributes patRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findNextSeriesRecord(Attributes seriesRec, String... iuids) findNextSeriesRecord(Attributes seriesRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findNextStudyRecord(Attributes studyRec, String... iuids) findNextStudyRecord(Attributes studyRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findPatientRecord(String... ids) findPatientRecord(Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findRootDirectoryRecord(boolean ignorePrivate, Attributes keys, boolean ignoreCaseOfPN, boolean matchNoValue) findRootDirectoryRecord(Attributes keys, boolean ignorePrivate, boolean ignoreCaseOfPN, boolean matchNoValue) findRootInstanceRecord(boolean ignorePrivate, String... iuids) findSeriesRecord(Attributes studyRec, String... iuids) findSeriesRecord(Attributes studyRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) findStudyRecord(Attributes patRec, String... iuids) findStudyRecord(Attributes patRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) final FilegetFile()final Attributesintfinal Attributesintintstatic booleaninUse(Attributes rec) booleanisEmpty()static booleanisPrivate(Attributes rec) booleanprotected voidsetFileSetConsistencyFlag(int i) protected voidprotected void
-
Field Details
-
file
-
raf
-
in
-
fmi
-
fsInfo
-
cache
-
-
Constructor Details
-
DirReader
- Throws:
IOException
-
DirReader
- Throws:
IOException
-
-
Method Details
-
inUse
-
isPrivate
-
getFile
-
getFileMetaInformation
-
getFileSetInformation
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFileSetUID
-
getTransferSyntaxUID
-
getFileSetID
-
getDescriptorFile
-
toFile
-
getDescriptorFileCharacterSet
-
getFileSetConsistencyFlag
public int getFileSetConsistencyFlag() -
setFileSetConsistencyFlag
protected void setFileSetConsistencyFlag(int i) -
knownInconsistencies
public boolean knownInconsistencies() -
getOffsetOfFirstRootDirectoryRecord
public int getOffsetOfFirstRootDirectoryRecord() -
setOffsetOfFirstRootDirectoryRecord
protected void setOffsetOfFirstRootDirectoryRecord(int i) -
getOffsetOfLastRootDirectoryRecord
public int getOffsetOfLastRootDirectoryRecord() -
setOffsetOfLastRootDirectoryRecord
protected void setOffsetOfLastRootDirectoryRecord(int i) -
isEmpty
public boolean isEmpty() -
clearCache
public void clearCache() -
readFirstRootDirectoryRecord
- Throws:
IOException
-
readLastRootDirectoryRecord
- Throws:
IOException
-
readNextDirectoryRecord
- Throws:
IOException
-
readLowerDirectoryRecord
- Throws:
IOException
-
findLastLowerDirectoryRecord
- Throws:
IOException
-
findFirstRootDirectoryRecordInUse
- Throws:
IOException
-
findRootDirectoryRecord
public Attributes findRootDirectoryRecord(Attributes keys, boolean ignorePrivate, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findRootDirectoryRecord
public Attributes findRootDirectoryRecord(boolean ignorePrivate, Attributes keys, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findNextDirectoryRecordInUse
public Attributes findNextDirectoryRecordInUse(Attributes rec, boolean ignorePrivate) throws IOException - Throws:
IOException
-
findNextDirectoryRecord
public Attributes findNextDirectoryRecord(Attributes rec, boolean ignorePrivate, Attributes keys, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findLowerDirectoryRecordInUse
public Attributes findLowerDirectoryRecordInUse(Attributes rec, boolean ignorePrivate) throws IOException - Throws:
IOException
-
findLowerDirectoryRecord
public Attributes findLowerDirectoryRecord(Attributes rec, boolean ignorePrivate, Attributes keys, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findPatientRecord
- Throws:
IOException
-
findPatientRecord
public Attributes findPatientRecord(Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findNextPatientRecord
- Throws:
IOException
-
findNextPatientRecord
public Attributes findNextPatientRecord(Attributes patRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findStudyRecord
- Throws:
IOException
-
findStudyRecord
public Attributes findStudyRecord(Attributes patRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findNextStudyRecord
- Throws:
IOException
-
findNextStudyRecord
public Attributes findNextStudyRecord(Attributes studyRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findSeriesRecord
- Throws:
IOException
-
findSeriesRecord
public Attributes findSeriesRecord(Attributes studyRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findNextSeriesRecord
- Throws:
IOException
-
findNextSeriesRecord
public Attributes findNextSeriesRecord(Attributes seriesRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findLowerInstanceRecord
public Attributes findLowerInstanceRecord(Attributes seriesRec, boolean ignorePrivate, String... iuids) throws IOException - Throws:
IOException
-
findLowerInstanceRecord
public Attributes findLowerInstanceRecord(Attributes seriesRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findNextInstanceRecord
public Attributes findNextInstanceRecord(Attributes instRec, boolean ignorePrivate, String... iuids) throws IOException - Throws:
IOException
-
findNextInstanceRecord
public Attributes findNextInstanceRecord(Attributes instRec, Attributes keys, RecordFactory recFact, boolean ignoreCaseOfPN, boolean matchNoValue) throws IOException - Throws:
IOException
-
findRootInstanceRecord
- Throws:
IOException
-