Package slash.navigation.datasources.binding

Examples of slash.navigation.datasources.binding.FileType


        } finally {
            if (zipInputStream != null)
                closeQuietly(zipInputStream);
        }

        FileType fileType = createFileType(uri, file, null);
        fileType.getFragment().addAll(sortFragmentTypes(fragmentTypes));
        fileTypes.add(fileType);
    }
View Full Code Here


        datasourceType.setId(id);
        datasourceType.setName(name);
        datasourceType.setBaseUrl(baseUrl);
        datasourceType.setDirectory(directory);

        FileType fileType1 = new FileType();
        fileType1.setUri("Eurasia/N59E011.hgt.zip");
        FragmentType fragmentType1 = new FragmentType();
        fragmentType1.setKey("N59E011");
        fileType1.getFragment().add(fragmentType1);
        datasourceType.getFile().add(fileType1);

        FileType fileType2 = new FileType();
        fileType2.setUri("Eurasia/N60E012.hgt.zip");
        FragmentType fragmentType2 = new FragmentType();
        fragmentType2.setKey("N60E012");
        fragmentType2.getChecksum().add(createChecksumType(2884802L, calendar(2009, 1, 15, 11, 6, 16), "395C9F5202BC8ECF0CCAAE567772FA7955774FEA"));
        fileType2.getFragment().add(fragmentType2);
        datasourceType.getFile().add(fileType2);

        FileType fileType3 = new FileType();
        fileType3.setUri("I36.zip");
        fileType3.getChecksum().add(createChecksumType(4987465L, calendar(2013, 1, 20, 17, 42, 36), "99982D1554A9F2B9CA49642E78BCD8192FC9DEF3"));
        FragmentType fragmentType3 = new FragmentType();
        fragmentType3.setKey("N32E034");
        fragmentType3.getChecksum().add(createChecksumType(2884802L, calendar(2012, 5, 14, 20, 51, 32), "AD36AA9709ECAE64718308EBB1659C5BB4327A74"));
        fileType3.getFragment().add(fragmentType3);
        FragmentType fragmentType4 = new FragmentType();
        fragmentType4.setKey("N32E035");
        fragmentType4.getChecksum().add(createChecksumType(287465L, calendar(2011, 1, 20, 17, 42, 36), "B9982D1554A9F2B9CA49642E78BCD8192FC9DEF3"));
        fileType3.getFragment().add(fragmentType4);
        datasourceType.getFile().add(fileType3);

        return new DataSourceImpl(datasourceType);
    }
View Full Code Here

TOP

Related Classes of slash.navigation.datasources.binding.FileType

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.