Modifier and Type | Field and Description |
---|---|
private boolean |
checkDuplicate |
private static int |
DEFAULT_WIDTH
default number of characters per line
|
private DicomEncodingOptions |
encOpts |
private File |
file |
private FilesetInfo |
fsInfo |
private DicomDirReader |
in |
private boolean |
inUse |
private boolean |
origSeqLength |
private DicomDirWriter |
out |
private static ResourceBundle |
rb |
private RecordFactory |
recFact |
private int |
width |
Constructor and Description |
---|
DcmDir() |
Modifier and Type | Method and Description |
---|---|
private static void |
addCommandOptions(org.apache.commons.cli.OptionGroup cmdGroup) |
int |
addReferenceTo(File f) |
private void |
checkIn() |
private void |
checkOut() |
private void |
checkRecordFactory() |
void |
close() |
void |
commit() |
void |
compact(File f,
File bak) |
private void |
copyChildsFrom(DicomDirReader r,
Attributes src,
Attributes dst) |
void |
copyFrom(DicomDirReader r) |
void |
create(File file) |
File |
getFile() |
private String |
heading(Attributes rec,
StringBuilder index) |
void |
list() |
private void |
list(Attributes rec,
StringBuilder index) |
private void |
list(String header,
Attributes attrs) |
static void |
main(String[] args) |
void |
open(File file) |
void |
openForReadOnly(File file) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
int |
purge() |
int |
removeReferenceTo(File f) |
private void |
rename(File from,
File to) |
void |
setCheckDuplicate(boolean checkDuplicate) |
void |
setEncodingOptions(DicomEncodingOptions encOpts) |
void |
setInUse(boolean inUse) |
void |
setOriginalSequenceLength(boolean origSeqLength) |
void |
setRecordFactory(RecordFactory recFact) |
void |
setWidth(int width) |
private static ResourceBundle rb
private static final int DEFAULT_WIDTH
private boolean inUse
private int width
private DicomEncodingOptions encOpts
private final FilesetInfo fsInfo
private boolean origSeqLength
private boolean checkDuplicate
private DicomDirReader in
private DicomDirWriter out
private RecordFactory recFact
public DcmDir()
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static void addCommandOptions(org.apache.commons.cli.OptionGroup cmdGroup)
public void compact(File f, File bak) throws IOException
IOException
private void rename(File from, File to) throws IOException
IOException
public void copyFrom(DicomDirReader r) throws IOException
IOException
private void copyChildsFrom(DicomDirReader r, Attributes src, Attributes dst) throws IOException
IOException
public final void setInUse(boolean inUse)
public final void setOriginalSequenceLength(boolean origSeqLength)
public final void setEncodingOptions(DicomEncodingOptions encOpts)
public final void setWidth(int width)
public final void setCheckDuplicate(boolean checkDuplicate)
public final void setRecordFactory(RecordFactory recFact)
public void close()
public void openForReadOnly(File file) throws IOException
IOException
public void create(File file) throws IOException
IOException
public void open(File file) throws IOException
IOException
public void list() throws IOException
IOException
private void list(String header, Attributes attrs)
private void list(Attributes rec, StringBuilder index) throws IOException
IOException
private String heading(Attributes rec, StringBuilder index)
public int addReferenceTo(File f) throws IOException
IOException
public int removeReferenceTo(File f) throws IOException
IOException
public void commit() throws IOException
IOException
public int purge() throws IOException
IOException
private void checkIn()
private void checkOut()
private void checkRecordFactory()
Copyright © 2017 dcm4che.org. All rights reserved.