Package org.dcm4che3.data

Examples of org.dcm4che3.data.Attributes.validate()


        DicomInputStream dis = null;
        try {
            System.out.print("Validate: " + file + " ... ");
            dis = new DicomInputStream(file);
            Attributes attrs = dis.readDataset(-1, -1);
            ValidationResult result = attrs.validate(iod);
            if (result.isValid())
                System.out.println("OK");
            else {
                System.out.println("FAILED:");
                System.out.println(result.asText(attrs));
View Full Code Here


    @Test
    public void testValidateDICOMDIR() throws Exception {
        IOD iod = IOD.load("resource:dicomdir-iod.xml");
        Attributes attrs = readDataset("DICOMDIR");
        ValidationResult result = attrs.validate(iod);
        assertTrue(result.isValid());
    }

    @Test
    public void testValidateCode() throws Exception {
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.