Package edu.harvard.hul.ois.fits

Examples of edu.harvard.hul.ois.fits.XmlContentConverter


       
        elem = new Element ("YCbCrCoefficients");
        elem.addContent ("10.0 20.0 30.0");
        imgElem.addContent (elem);
       
        XmlContentConverter conv = new XmlContentConverter ();
        Mix mix = (Mix) conv.toMix (imgElem,null);
        BasicDigitalObjectInformation bdoi = mix.getBasicDigitalObjectInformation();
        String byteOrder = bdoi.getByteOrder().toString ();
        assertEquals ("big endian", byteOrder);
       
        ImageCaptureMetadata icm = mix.getImageCaptureMetadata();
View Full Code Here


       
        elem = new Element( "hasForms");
        elem.addContent("yes");
        docElem.addContent (elem);

        XmlContentConverter conv = new XmlContentConverter ();
        DocumentMD dmd = (DocumentMD) conv.toDocumentMD (docElem);
        List<Feature> features = dmd.getFeatures ();
        assertTrue (features.size() == 1);
        Feature feature = features.get(0);
        assertTrue (feature == Feature.hasForms);
View Full Code Here

       
        elem = new Element ("markupLanguage");
        elem.addContent (mln);
        textElem.addContent (elem);
       
        XmlContentConverter conv = new XmlContentConverter ();
        TextMD tmd = (TextMD) conv.toTextMD (textElem);
       
        List<CharacterInfo> chinfos = tmd.getCharacterInfos();
        assertTrue (chinfos.size() == 1);
        CharacterInfo chinfo = chinfos.get(0);
        assertEquals ("US-ASCII", chinfo.getCharset());
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.fits.XmlContentConverter

Copyright © 2018 www.massapicom. 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.