Modifier and Type | Class and Description |
---|---|
static interface |
StoreSCU.RSPHandlerFactory |
Modifier and Type | Field and Description |
---|---|
private ApplicationEntity |
ae |
private Association |
as |
private Attributes |
attrs |
private int |
filesScanned |
private int |
filesSent |
private String |
inputFile |
private int |
priority |
private static ResourceBundle |
rb |
private boolean |
relExtNeg |
private RelatedGeneralSOPClasses |
relSOPClasses |
private Connection |
remote |
private AAssociateRQ |
rq |
private StoreSCU.RSPHandlerFactory |
rspHandlerFactory |
private File |
tmpDir |
private File |
tmpFile |
private String |
tmpPrefix |
private String |
tmpSuffix |
private long |
totalSize |
private String |
uidSuffix |
Constructor and Description |
---|
StoreSCU(ApplicationEntity ae) |
Modifier and Type | Method and Description |
---|---|
private static void |
addAttributesOption(org.apache.commons.cli.Options opts) |
boolean |
addFile(BufferedWriter fileInfos,
File f,
long endFmi,
Attributes fmi,
Attributes ds) |
private static void |
addInputFileOption(org.apache.commons.cli.Options opts) |
private static void |
addRelatedSOPClassOptions(org.apache.commons.cli.Options opts) |
static void |
addTmpFileOptions(org.apache.commons.cli.Options opts) |
static void |
addUIDSuffixOption(org.apache.commons.cli.Options opts) |
void |
close() |
private static void |
configureInputFile(StoreSCU storescu,
org.apache.commons.cli.CommandLine cl) |
static void |
configureRelatedSOPClass(StoreSCU storescu,
org.apache.commons.cli.CommandLine cl) |
private static void |
configureTmpFile(StoreSCU storescu,
org.apache.commons.cli.CommandLine cl) |
Attributes |
echo() |
void |
enableSOPClassRelationshipExtNeg(boolean enable) |
AAssociateRQ |
getAAssociateRQ() |
Attributes |
getAttributes() |
private static List<String> |
getFilePathsFromInputFile(String inputFile) |
Connection |
getRemoteConnection() |
static void |
main(String[] args) |
private void |
onCStoreRSP(Attributes cmd,
File f) |
void |
open() |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
void |
scanFiles(List<String> fnames) |
void |
scanFiles(List<String> fnames,
boolean printout) |
private String |
selectTransferSyntax(String cuid,
String filets) |
void |
send(File f,
long fmiEndPos,
String cuid,
String iuid,
String filets) |
void |
sendFiles() |
void |
setAttributes(Attributes attrs) |
void |
setPriority(int priority) |
void |
setRspHandlerFactory(StoreSCU.RSPHandlerFactory rspHandlerFactory) |
void |
setTmpFile(File tmpFile) |
void |
setTmpFileDirectory(File tmpDir) |
void |
setTmpFilePrefix(String prefix) |
void |
setTmpFileSuffix(String suffix) |
void |
setUIDSuffix(String uidSuffix) |
static String |
uidSuffixOf(org.apache.commons.cli.CommandLine cl) |
private static ResourceBundle rb
private final ApplicationEntity ae
private final Connection remote
private final AAssociateRQ rq
private final RelatedGeneralSOPClasses relSOPClasses
private Attributes attrs
private boolean relExtNeg
private int priority
private Association as
private long totalSize
private int filesScanned
private int filesSent
private StoreSCU.RSPHandlerFactory rspHandlerFactory
public StoreSCU(ApplicationEntity ae) throws IOException
IOException
public void setRspHandlerFactory(StoreSCU.RSPHandlerFactory rspHandlerFactory)
public AAssociateRQ getAAssociateRQ()
public Connection getRemoteConnection()
public Attributes getAttributes()
public void setAttributes(Attributes attrs)
public void setTmpFile(File tmpFile)
public final void setPriority(int priority)
public final void setUIDSuffix(String uidSuffix)
public final void setTmpFilePrefix(String prefix)
public final void setTmpFileSuffix(String suffix)
public final void setTmpFileDirectory(File tmpDir)
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static void addAttributesOption(org.apache.commons.cli.Options opts)
public static void addUIDSuffixOption(org.apache.commons.cli.Options opts)
public static void addTmpFileOptions(org.apache.commons.cli.Options opts)
private static void addRelatedSOPClassOptions(org.apache.commons.cli.Options opts)
private static void addInputFileOption(org.apache.commons.cli.Options opts)
public static String uidSuffixOf(org.apache.commons.cli.CommandLine cl)
private static void configureTmpFile(StoreSCU storescu, org.apache.commons.cli.CommandLine cl)
private static void configureInputFile(StoreSCU storescu, org.apache.commons.cli.CommandLine cl)
public static void configureRelatedSOPClass(StoreSCU storescu, org.apache.commons.cli.CommandLine cl) throws IOException
IOException
private static List<String> getFilePathsFromInputFile(String inputFile) throws IOException
IOException
public final void enableSOPClassRelationshipExtNeg(boolean enable)
public void scanFiles(List<String> fnames) throws IOException
IOException
public void scanFiles(List<String> fnames, boolean printout) throws IOException
IOException
public void sendFiles() throws IOException
IOException
public boolean addFile(BufferedWriter fileInfos, File f, long endFmi, Attributes fmi, Attributes ds) throws IOException
IOException
public Attributes echo() throws IOException, InterruptedException
IOException
InterruptedException
public void send(File f, long fmiEndPos, String cuid, String iuid, String filets) throws IOException, InterruptedException, ParserConfigurationException, SAXException
private String selectTransferSyntax(String cuid, String filets)
public void close() throws IOException, InterruptedException
IOException
InterruptedException
public void open() throws IOException, InterruptedException, IncompatibleConnectionException, GeneralSecurityException
private void onCStoreRSP(Attributes cmd, File f)
Copyright © 2017 dcm4che.org. All rights reserved.