Package org.apache.sis.internal.netcdf.ucar

Examples of org.apache.sis.internal.netcdf.ucar.DecoderWrapper


     * @throws IOException Should never happen.
     */
    @Test
    public void testUCAR() throws IOException {
        final Metadata metadata;
        final Decoder input = new DecoderWrapper(TestCase.LISTENERS, new NetcdfDataset(open(NCEP)));
        try {
            metadata = new MetadataReader(input).read();
        } finally {
            input.close();
        }
        compareToExpected(metadata);
    }
View Full Code Here


     * @param  name The file name as one of the above-cited constants.
     * @return The decoder for the given name.
     * @throws IOException If an error occurred while opening the file.
     */
    protected Decoder createDecoder(final String name) throws IOException {
        return new DecoderWrapper(LISTENERS, new NetcdfDataset(open(name)));
    }
View Full Code Here

     * @throws IOException Should never happen.
     */
    @Test
    public void testUCAR() throws IOException {
        final Metadata metadata;
        final Decoder input = new DecoderWrapper(TestCase.LISTENERS, new NetcdfDataset(open(NCEP)));
        try {
            metadata = new MetadataReader(input).read();
        } finally {
            input.close();
        }
        compareToExpected(metadata);
    }
View Full Code Here

TOP

Related Classes of org.apache.sis.internal.netcdf.ucar.DecoderWrapper

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.