ucar.nc2.ncml
Class NcmlConstructor

java.lang.Object
  extended by ucar.nc2.ncml.NcmlConstructor

public class NcmlConstructor
extends Object

Populate a NetcdfFile directly from NcML, can be used by IOSPs. All ncml elements are new, not modified.

Since:
Feb 26, 2011
Author:
caron

Constructor Summary
NcmlConstructor()
           
 
Method Summary
 Formatter getErrlog()
           
 boolean populate(InputStream ncml, NetcdfFile target)
           
 boolean populate(String ncml, NetcdfFile target)
           
 boolean populateFromResource(String resourceLocation, NetcdfFile target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcmlConstructor

public NcmlConstructor()
Method Detail

getErrlog

public Formatter getErrlog()

populateFromResource

public boolean populateFromResource(String resourceLocation,
                                    NetcdfFile target)
                             throws IOException
Parameters:
resourceLocation - eg "resources/nj22/iosp/ghcnm.ncml"
target - populate this file
Returns:
true if success
Throws:
IOException - on error

populate

public boolean populate(String ncml,
                        NetcdfFile target)
                 throws IOException
Throws:
IOException

populate

public boolean populate(InputStream ncml,
                        NetcdfFile target)
                 throws IOException
Throws:
IOException


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.