Examples of DicomEncodingOptions


Examples of org.dcm4che3.io.DicomEncodingOptions

    @Test
    public void testWriteDatasetWithGroupLength() throws IOException {
        DicomOutputStream out = new DicomOutputStream(file);
        out.setEncodingOptions(
                new DicomEncodingOptions(true, true, false, true, false));
        testWriteDataset(out, UID.ExplicitVRLittleEndian);
    }
View Full Code Here

Examples of org.dcm4che3.io.DicomEncodingOptions

    @Test
    public void testWriteDatasetWithoutUndefLength() throws IOException {
        DicomOutputStream out = new DicomOutputStream(file);
        out.setEncodingOptions(
                new DicomEncodingOptions(false, false, false, false, false));
        testWriteDataset(out, UID.ExplicitVRLittleEndian);
    }
View Full Code Here

Examples of org.dcm4che3.io.DicomEncodingOptions

    @Test
    public void testWriteDatasetWithUndefEmptyLength() throws IOException {
        DicomOutputStream out = new DicomOutputStream(file);
        out.setEncodingOptions(
                new DicomEncodingOptions(false, true, true, true, true));
        testWriteDataset(out, UID.ExplicitVRLittleEndian);
    }
View Full Code Here

Examples of org.dcm4che3.io.DicomEncodingOptions

        out = new DicomOutputStream(new RAFOutputStreamAdapter(raf),
                super.getTransferSyntaxUID());
        int seqLen = in.length();
        boolean undefSeqLen = seqLen <= 0;
        setEncodingOptions(
                new DicomEncodingOptions(false,
                        undefSeqLen,
                        false,
                        undefSeqLen,
                        false));
        this.nextRecordPos = this.firstRecordPos = (int) in.getPosition();
View Full Code Here

Examples of org.dcm4che3.io.DicomEncodingOptions

            writeTo(out, cs, 0, size, 0);
        }
    }

     public void writeItemTo(DicomOutputStream out) throws IOException {
         DicomEncodingOptions encOpts = out.getEncodingOptions();
         int len = getEncodedItemLength(encOpts, out.isExplicitVR());
         out.writeHeader(Tag.Item, null, len);
         writeTo(out);
         if (len == -1)
             out.writeHeader(Tag.ItemDelimitationItem, null, 0);
View Full Code Here

Examples of org.dcm4che3.io.DicomEncodingOptions

            throws ParseException {
        if (cl.hasOption("expl-item-len") && cl.hasOption("undef-item-len")
                || cl.hasOption("expl-seq-len") && cl.hasOption("undef-seq-len"))
                throw new ParseException(
                        rb.getString("conflicting-enc-opts"));
        return new DicomEncodingOptions(
                cl.hasOption("group-len"),
                !cl.hasOption("expl-seq-len"),
                cl.hasOption("undef-seq-len"),
                !cl.hasOption("expl-item-len"),
                cl.hasOption("undef-item-len"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.