public DicomInputStream(InputStream in, String tsuid) throws IOException { this(in, TransferSyntax.valueOf(tsuid)); }
public final void setTransferSyntax(String tsuid) { setTransferSyntax(TransferSyntax.valueOf(tsuid)); }
/** * Write a DICOM dataset to the output stream. * * @param attrs * A DicomObject containing the attributes to write. * @param tsuid * A String containing the transfer syntax UID of the file. * @throws IOException */ public void writeDataset(DicomObject attrs, String tsuid) throws IOException { writeDataset(attrs, TransferSyntax.valueOf(tsuid)); }
public void writeTo(PDVOutputStream out, String tsuid) throws IOException { DicomOutputStream dos = new DicomOutputStream(out); dos.writeDataset(data, TransferSyntax.valueOf(tsuid)); }
@Override public DicomObject readDataset() throws IOException { PresentationContext pc = as.getAssociateAC().getPresentationContext( pcid); String tsuid = pc.getTransferSyntax(); return readDicomObject(TransferSyntax.valueOf(tsuid)); }
if (CommandUtils.isResponse(cmd)) DicomObject data = readDicomObject(TransferSyntax.valueOf(tsuid)); if (log.isDebugEnabled()) log.debug("Dataset:\n" + data);
/** Sets up the child writer if it hasn't already been setup */ protected void setupWriter(IIOMetadata metadata) { if (writer != null) return; if (metadata == null) metadata = getDefaultStreamMetadata(null); DicomStreamMetaData dmeta = (DicomStreamMetaData) metadata; DicomObject dobj = dmeta.getDicomObject(); String tsuid = dobj.getString(Tag.TransferSyntaxUID); TransferSyntax ts = TransferSyntax.valueOf(tsuid); encapsulated = ts.encapsulated(); if (encapsulated) { writer = ImageWriterFactory.getInstance() .getWriterForTransferSyntax(tsuid); writeParam = ImageWriterFactory.getInstance().createWriteParam( tsuid, writer); } else { writer = ImageIO.getImageWritersByFormatName("RAW").next(); } }
String tsuid = attrs.getString(Tag.TransferSyntaxUID); if (tsuid != null) switchTransferSyntax(TransferSyntax.valueOf(tsuid)); else log.warn("Missing (0002,0010) Transfer Syntax in " +
String tsuid = attrs.getString(Tag.TransferSyntaxUID); if (tsuid != null) { ts = TransferSyntax.valueOf(tsuid); tag = ts.bigEndian() ? ByteUtils.bytesBE2tag(header, 0) : ByteUtils.bytesLE2tag(header, 0);
DicomInputStream postDis = new DicomInputStream(iis, TransferSyntax.valueOf(tsuid)); if( isSkipLargePrivate() ) { DicomInputHandler dih = new SizeSkipInputHandler(null);