public static DataWriterAdapter forAttributes(Attributes data) { return data != null ? new DataWriterAdapter(data) : null; }
public static DataWriterAdapter forAttributes(Attributes data) { return data != null ? new DataWriterAdapter(data) : null; }
public void nset(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { nset(cuid, cuid, iuid, new DataWriterAdapter(data), tsuid, rspHandler); }
public DimseRSP nset(String asuid, String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException { return nset(asuid, cuid, iuid, new DataWriterAdapter(data), tsuid); }
public void nset(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { nset(asuid, cuid, iuid, new DataWriterAdapter(data), tsuid, rspHandler); }
public DimseRSP nset(String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException { return nset(cuid, cuid, iuid, new DataWriterAdapter(data), tsuid); }
public DimseRSP nset(String asuid, String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException { return nset(asuid, cuid, iuid, new DataWriterAdapter(data), tsuid); }
public void nset(String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { nset(cuid, cuid, iuid, new DataWriterAdapter(data), tsuid, rspHandler); }
public void nset(String asuid, String cuid, String iuid, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { nset(asuid, cuid, iuid, new DataWriterAdapter(data), tsuid, rspHandler); }
public DimseRSP nset(String cuid, String iuid, Attributes data, String tsuid) throws IOException, InterruptedException { return nset(cuid, cuid, iuid, new DataWriterAdapter(data), tsuid); }
public void cfind(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cfindrq = Commands.mkCFindRQ(rspHandler.getMessageID(), cuid, priority); invoke(pc, cfindrq, new DataWriterAdapter(data), rspHandler, conn.getResponseTimeout()); }
public void cfind(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cfindrq = Commands.mkCFindRQ(rspHandler.getMessageID(), cuid, priority); invoke(pc, cfindrq, new DataWriterAdapter(data), rspHandler, conn.getResponseTimeout()); }
@Override protected DataWriter createDataWriter(InstanceLocator inst, String tsuid) throws IOException { Attributes attrs; DicomInputStream in = new DicomInputStream(inst.getFile()); try { if (withoutBulkData) { in.setIncludeBulkData(IncludeBulkData.NO); attrs = in.readDataset(-1, Tag.PixelData); } else { in.setIncludeBulkData(IncludeBulkData.URI); attrs = in.readDataset(-1, -1); } } finally { SafeClose.close(in); } if (delayCStore > 0) try { Thread.sleep(delayCStore); } catch (InterruptedException ignore) {} return new DataWriterAdapter(attrs); }
public void cget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cgetrq = Commands.mkCGetRQ(rspHandler.getMessageID(), cuid, priority); invoke(pc, cgetrq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
public void cmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cmoverq = Commands.mkCMoveRQ(rspHandler.getMessageID(), cuid, priority, destination); invoke(pc, cmoverq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
public void cmove(String cuid, int priority, Attributes data, String tsuid, String destination, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cmoverq = Commands.mkCMoveRQ(rspHandler.getMessageID(), cuid, priority, destination); invoke(pc, cmoverq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
@Override protected DataWriter createDataWriter(InstanceLocator inst, String tsuid) throws IOException { Attributes attrs; DicomInputStream in = new DicomInputStream(inst.getFile()); try { if (withoutBulkData) { in.setIncludeBulkData(IncludeBulkData.NO); attrs = in.readDataset(-1, Tag.PixelData); } else { in.setIncludeBulkData(IncludeBulkData.URI); attrs = in.readDataset(-1, -1); } } finally { SafeClose.close(in); } if (delayCStore > 0) try { Thread.sleep(delayCStore); } catch (InterruptedException ignore) {} return new DataWriterAdapter(attrs); }
public void cget(String cuid, int priority, Attributes data, String tsuid, DimseRSPHandler rspHandler) throws IOException, InterruptedException { PresentationContext pc = pcFor(cuid, tsuid); checkIsSCU(cuid); Attributes cgetrq = Commands.mkCGetRQ(rspHandler.getMessageID(), cuid, priority); invoke(pc, cgetrq, new DataWriterAdapter(data), rspHandler, conn.getRetrieveTimeout(), !conn.isRetrieveTimeoutTotal()); }
public void writeDimseRSP(PresentationContext pc, Attributes cmd, Attributes data) throws IOException { DataWriter writer = null; int datasetType = Commands.NO_DATASET; if (data != null) { writer = new DataWriterAdapter(data); datasetType = Commands.getWithDatasetType(); } cmd.setInt(Tag.CommandDataSetType, VR.US, datasetType); encoder.writeDIMSE(pc, cmd, writer); if (!Status.isPending(cmd.getInt(Tag.Status, 0))) { decPerforming(); startIdleTimeout(); } }
public void writeDimseRSP(PresentationContext pc, Attributes cmd, Attributes data) throws IOException { DataWriter writer = null; int datasetType = Commands.NO_DATASET; if (data != null) { writer = new DataWriterAdapter(data); datasetType = Commands.getWithDatasetType(); } cmd.setInt(Tag.CommandDataSetType, VR.US, datasetType); encoder.writeDIMSE(pc, cmd, writer); if (!Status.isPending(cmd.getInt(Tag.Status, 0))) { decPerforming(); startIdleTimeout(); } }