Modifier and Type | Class and Description |
---|---|
private static class |
StowRS.ExtractedBulkData |
Modifier and Type | Field and Description |
---|---|
private List<File> |
files |
private Attributes |
keys |
private static Logger |
LOG |
private StowRSTool.StowMetaDataType |
mediaType |
private static String |
MULTIPART_BOUNDARY |
private static org.apache.commons.cli.Options |
opts |
private static ResourceBundle |
rb |
private List<StowRSResponse> |
responses |
private String |
transferSyntax |
private String |
URL |
Constructor and Description |
---|
StowRS() |
StowRS(Attributes overrideAttrs,
StowRSTool.StowMetaDataType mediaType,
List<File> files,
String url,
String ts) |
Modifier and Type | Method and Description |
---|---|
void |
addResponse(StowRSResponse response) |
private static void |
coerceAttributes(Attributes metadata,
Attributes keys) |
private static Attributes |
configureKeys(StowRS main,
org.apache.commons.cli.CommandLine cl) |
private static String |
createRandomBulkDataURI() |
private StowRS.ExtractedBulkData |
extractBulkData(Attributes dataset) |
private javax.ws.rs.core.MediaType |
getBulkDataMediaType(Attributes metadata) |
List<StowRSResponse> |
getResponses() |
String |
getTransferSyntax() |
private static boolean |
isMultiFrame(Attributes metadata) |
static void |
main(String[] args) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
private static Attributes |
parseJSON(String fname) |
private static Attributes |
parseJSON(String fname,
Attributes attrs) |
private static StowRSResponse |
sendDicomFile(String url,
File f) |
private StowRSResponse |
sendMetaDataAndBulkData(Attributes metadata,
StowRS.ExtractedBulkData extractedBulkData) |
void |
setTransferSyntax(String transferSyntax) |
void |
stow() |
private void |
stowDicomFile(File file) |
private void |
stowMetaDataAndBulkData(File file) |
private static String |
toContentType(javax.ws.rs.core.MediaType mediaType) |
private static void |
writeBulkDataPart(javax.ws.rs.core.MediaType mediaType,
DataOutputStream wr,
String uri,
List<BulkData> chunks) |
private static void |
writeBulkDataToStream(BulkData bulkData,
DataOutputStream wr) |
private static final String MULTIPART_BOUNDARY
private Attributes keys
private static org.apache.commons.cli.Options opts
private final List<StowRSResponse> responses
private static ResourceBundle rb
private StowRSTool.StowMetaDataType mediaType
private String transferSyntax
public StowRS()
public StowRS(Attributes overrideAttrs, StowRSTool.StowMetaDataType mediaType, List<File> files, String url, String ts)
public void stow()
private void stowMetaDataAndBulkData(File file)
private void stowDicomFile(File file)
private static String createRandomBulkDataURI()
private StowRS.ExtractedBulkData extractBulkData(Attributes dataset)
public List<StowRSResponse> getResponses()
public void addResponse(StowRSResponse response)
private static Attributes parseJSON(String fname) throws Exception
Exception
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static Attributes configureKeys(StowRS main, org.apache.commons.cli.CommandLine cl)
private static boolean isMultiFrame(Attributes metadata)
private static void coerceAttributes(Attributes metadata, Attributes keys)
private StowRSResponse sendMetaDataAndBulkData(Attributes metadata, StowRS.ExtractedBulkData extractedBulkData) throws IOException
IOException
private static void writeBulkDataPart(javax.ws.rs.core.MediaType mediaType, DataOutputStream wr, String uri, List<BulkData> chunks) throws IOException
IOException
private static String toContentType(javax.ws.rs.core.MediaType mediaType)
private javax.ws.rs.core.MediaType getBulkDataMediaType(Attributes metadata)
private static void writeBulkDataToStream(BulkData bulkData, DataOutputStream wr) throws IOException
IOException
private static StowRSResponse sendDicomFile(String url, File f) throws IOException
IOException
private static Attributes parseJSON(String fname, Attributes attrs) throws IOException
IOException
public String getTransferSyntax()
public void setTransferSyntax(String transferSyntax)
Copyright © 2017 dcm4che.org. All rights reserved.