public class DataFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DataFactory.Result
Deprecated.
FeatureDatasets will move to legacy in ver7, this class will become private.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOCOL |
static String |
SCHEME |
| Constructor and Description |
|---|
DataFactory() |
| Modifier and Type | Method and Description |
|---|---|
Access |
chooseDatasetAccess(List<Access> accessList)
Find the "best" access in case theres more than one, based on what the CDM knows
how to open and use.
|
NetcdfDataset |
openDataset(Access access,
boolean acquire,
CancelTask task,
Formatter log)
Try to open Access as a NetcdfDataset.
|
NetcdfDataset |
openDataset(Dataset Dataset,
boolean acquire,
CancelTask task,
Formatter log)
Try to open as a NetcdfDataset.
|
NetcdfDataset |
openDataset(String location,
boolean acquire,
CancelTask task,
Formatter log)
Open a NetcdfDataset from a URL location string.
|
DataFactory.Result |
openFeatureDataset(Access access,
CancelTask task)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available here.
|
DataFactory.Result |
openFeatureDataset(Dataset Dataset,
CancelTask task)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available here.
|
DataFactory.Result |
openFeatureDataset(FeatureType wantFeatureType,
Dataset ds,
CancelTask task,
DataFactory.Result result)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available here.
|
DataFactory.Result |
openFeatureDataset(FeatureType wantFeatureType,
String urlString,
CancelTask task)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available here.
|
DataFactory.Result |
openFeatureDataset(String urlString,
CancelTask task)
Deprecated.
FeatureDatasets will move to legacy in ver7, this method will not be available here.
|
static void |
setDebugFlags(DebugFlags debugFlag) |
static void |
setPreferAccess(ServiceType... prefer) |
static void |
setPreferCdm(boolean prefer) |
public static final String PROTOCOL
public static final String SCHEME
public static void setPreferCdm(boolean prefer)
public static void setPreferAccess(ServiceType... prefer)
public static void setDebugFlags(DebugFlags debugFlag)
@Deprecated public DataFactory.Result openFeatureDataset(String urlString, CancelTask task) throws IOException
urlString - [thredds:]catalog.xml#datasetIdtask - may be nullIOException - on read error@Deprecated public DataFactory.Result openFeatureDataset(FeatureType wantFeatureType, String urlString, CancelTask task) throws IOException
wantFeatureType - desired feature type, may be NONE or nullurlString - [thredds:]catalog.xml#datasetIdtask - may be nullIOException - on read error@Deprecated @Nonnull public DataFactory.Result openFeatureDataset(Dataset Dataset, CancelTask task) throws IOException
Dataset - use this to figure out what type, how to open, etctask - allow user to cancel; may be nullIOException - on read error@Deprecated @Nonnull public DataFactory.Result openFeatureDataset(FeatureType wantFeatureType, Dataset ds, CancelTask task, DataFactory.Result result) throws IOException
IOException@Deprecated public DataFactory.Result openFeatureDataset(Access access, CancelTask task) throws IOException
access - use this Access.task - may be nullIOException - on read errorpublic NetcdfDataset openDataset(String location, boolean acquire, CancelTask task, Formatter log) throws IOException
location - catalog.xml#datasetId, may optionally start with "thredds:"task - may be nulllog - error messages gp here, may be nullacquire - if true, aquire the dataset, else open itIOException - on read errorpublic NetcdfDataset openDataset(Dataset Dataset, boolean acquire, CancelTask task, Formatter log) throws IOException
Dataset - open thisacquire - if true, aquire the dataset, else open ittask - may be nulllog - error message, may be nullIOException - on read errorpublic NetcdfDataset openDataset(Access access, boolean acquire, CancelTask task, Formatter log) throws IOException
access - open this Accessacquire - if true, aquire the dataset, else open ittask - may be nulllog - error message, may be nullIOException - on read error