Documentation of 'visad.data.dods.DODSForm' Java class
DODSForm
visad.data.dods

Class DODSForm

  • All Implemented Interfaces:
    FormFileInformer


    public class DODSForm
    extends Form
    implements FormFileInformer
    Provides support for accessing the DODS form of data from VisAD.

    Instances are mutable.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String SUFFIX
      The suffix in the path-component of a URL specification that identifies a dataset specification as being a DODS dataset specification.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.String id, Data data, boolean replace)
      Throws an exception.
      static DODSForm dodsForm()
      Returns an instance of this class.
      java.lang.String[] getDefaultSuffixes()
      Returns the path-component suffixes that identifies a dataset specification as being a DODS dataset specification.
      FormNode getForms(Data data)
      Returns null.
      boolean isThisType(byte[] block)
      Does nothing.
      boolean isThisType(java.lang.String spec)
      Indicates if a dataset specification is consistent with a DODS dataset specification.
      DataImpl open(java.lang.String id)
      Opens an existing DODS dataset.
      DataImpl open(java.net.URL url)
      Opens an existing data object.
      void save(java.lang.String id, Data data, boolean replace)
      Throws an exception.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUFFIX

        public static final java.lang.String SUFFIX
        The suffix in the path-component of a URL specification that identifies a dataset specification as being a DODS dataset specification. It doesn't have a leading period.
        See Also:
        Constant Field Values
    • Method Detail

      • dodsForm

        public static DODSForm dodsForm()
        Returns an instance of this class.
        Returns:
        An instance of this class.
      • add

        public void add(java.lang.String id,
                        Data data,
                        boolean replace)
                 throws BadFormException
        Throws an exception.
        Specified by:
        add in class FormNode
        Parameters:
        id - An identifier.
        data - A VisAD data object.
        replace - Whether or not to replace an existing object.
        Throws:
        BadFormException - Always.
      • open

        public DataImpl open(java.lang.String id)
                      throws BadFormException,
                             java.io.IOException,
                             VisADException
        Opens an existing DODS dataset.
        Specified by:
        open in class FormNode
        Parameters:
        id - The URL for a DODS dataset. The path component should have a SUFFIX suffix.
        Returns:
        The VisAD data object corresponding to the specified DODS dataset. Might be null.
        Throws:
        BadFormException - The DODS dataset is corrupt.
        VisADException - VisAD failure.
        java.rmi.RemoteException - Java RMI failure.
        java.io.IOException
      • open

        public DataImpl open(java.net.URL url)
                      throws BadFormException,
                             VisADException,
                             java.io.IOException
        Opens an existing data object.
        Specified by:
        open in class FormNode
        Parameters:
        url - The URL for a DODS dataset. The path component should have a SUFFIX suffix.
        Returns:
        The VisAD data object corresponding to the DODS dataset.
        Throws:
        BadFormException - The DODS dataset is corrupt.
        VisADException - VisAD failure.
        java.rmi.RemoteException - Java RMI failure.
        java.io.IOException
      • getForms

        public FormNode getForms(Data data)
        Returns null.
        Specified by:
        getForms in class FormNode
        Parameters:
        data - A VisAD data object.
        Returns:
        null.
      • isThisType

        public boolean isThisType(java.lang.String spec)
        Indicates if a dataset specification is consistent with a DODS dataset specification.
        Specified by:
        isThisType in interface FormFileInformer
        Parameters:
        spec - A dataset specification. NB: Not a URL.
        Returns:
        true if and only if the dataset specification is consistent with a DODS dataset specification.
      • isThisType

        public boolean isThisType(byte[] block)
        Does nothing. Because the initial block of data in a DODS dataset can't be obtained from a DODS server, this routine does nothing and always returns false.
        Specified by:
        isThisType in interface FormFileInformer
        Parameters:
        block - A block of data.
        Returns:
        false always.
      • getDefaultSuffixes

        public java.lang.String[] getDefaultSuffixes()
        Returns the path-component suffixes that identifies a dataset specification as being a DODS dataset specification. The suffixes don't have a leading period. The returned array can be safely modified.
        Specified by:
        getDefaultSuffixes in interface FormFileInformer
        Returns:
        A freshly-allocated array with the relevant suffixes.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.