public Attributes echo() throws IOException, InterruptedException { DimseRSP response = as.cecho(); response.next(); return response.getCommand(); }
private void dimseRSPHandler(DimseRSP response) throws IOException, InterruptedException { response.next(); Attributes command = response.getCommand(); if (command.getInt(Tag.Status, 0) != 0) { throw new IOException("Unable to print the image. DICOM response status: " + command.getInt(Tag.Status, 0)); //$NON-NLS-1$ } }