private void loadCustomConfiguration() { try { recFact.loadConfiguration(Paths.get(recordConfig).toString()); } catch (Exception e) { throw new RuntimeException(e); } }
private void loadCustomConfiguration() { try { recFact.loadConfiguration(Paths.get(recordConfig).toString()); } catch (Exception e) { throw new RuntimeException(e); } }
public void loadDefaultConfiguration() { try { loadConfiguration(ResourceLocator.getResource( "org/dcm4che3/media/RecordFactory.xml", this.getClass())); } catch (Exception e) { throw new RuntimeException(e); } }
private static void configureDicomFileSet(DcmQRSCP main, CommandLine cl) throws Exception { if (!cl.hasOption("dicomdir")) throw new MissingOptionException(rb.getString("missing-dicomdir")); main.setDicomDirectory(new File(cl.getOptionValue("dicomdir"))); main.setFilePathFormat(cl.getOptionValue("filepath", "DICOM/{0020000D,hash}/{0020000E,hash}/{00080018,hash}")); RecordFactory recFact = new RecordFactory(); if (cl.hasOption("record-config")) recFact.loadConfiguration(cl.getOptionValue("record-config")); main.setRecordFactory(recFact); }
private static void configureDicomFileSet(DcmQRSCP main, CommandLine cl) throws Exception { if (!cl.hasOption("dicomdir")) throw new MissingOptionException(rb.getString("missing-dicomdir")); main.setDicomDirectory(new File(cl.getOptionValue("dicomdir"))); main.setFilePathFormat(cl.getOptionValue("filepath", "DICOM/{0020000D,hash}/{0020000E,hash}/{00080018,hash}")); RecordFactory recFact = new RecordFactory(); if (cl.hasOption("record-config")) recFact.loadConfiguration(cl.getOptionValue("record-config")); main.setRecordFactory(recFact); }