Documentation of 'visad.data.vis5d.Vis5DTopoForm' Java class
Vis5DTopoForm
visad.data.vis5d

Class Vis5DTopoForm

  • All Implemented Interfaces:
    FormFileInformer


    public class Vis5DTopoForm
    extends Form
    implements FormFileInformer
    Vis5DTopoForm is the VisAD data format adapter for Vis5D topography files.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Vis5DTopoForm()
      Create a new Vis5DTopoForm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.String id, Data data, boolean replace)
      Add data to an existing data object.
      java.lang.String[] getDefaultSuffixes()
      Get default suffixes for Vis5D topography files
      FormNode getForms(Data data)
      Return the data forms that are compatible with a data object.
      boolean isThisType(byte[] block)
      Check to see if the block contains the magic number
      boolean isThisType(java.lang.String name)
      Check to see if the file name might be right for this form.
      DataImpl open(java.io.InputStream in)
      Returns a VisAD data object corresponding to an input stream for a Vis5DTopography file.
      DataImpl open(java.lang.String id)
      Returns a VisAD data object corresponding to a Vis5D topography file.
      DataImpl open(java.net.URL url)
      Returns a VisAD data object corresponding to a URL pointing to a Vis5D topography file.
      void save(java.lang.String id, Data data, boolean replace)
      Save a VisAD data object in this form.
      • Methods inherited from class java.lang.Object

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

      • Vis5DTopoForm

        public Vis5DTopoForm()
        Create a new Vis5DTopoForm
    • Method Detail

      • isThisType

        public boolean isThisType(java.lang.String name)
        Check to see if the file name might be right for this form.
        Specified by:
        isThisType in interface FormFileInformer
        Parameters:
        name - name of the file
        Returns:
        true if it might be a Vis5D topography file based on the name.
      • isThisType

        public boolean isThisType(byte[] block)
        Check to see if the block contains the magic number
        Specified by:
        isThisType in interface FormFileInformer
        Parameters:
        block - block of bytes from file
        Returns:
        true if the first 4 bytes correspond to "TOPO"
      • getDefaultSuffixes

        public java.lang.String[] getDefaultSuffixes()
        Get default suffixes for Vis5D topography files
        Specified by:
        getDefaultSuffixes in interface FormFileInformer
        Returns:
        array of suffixes (.v5d, .TOPO)
      • add

        public void add(java.lang.String id,
                        Data data,
                        boolean replace)
                 throws BadFormException
        Add data to an existing data object.
        Specified by:
        add in class FormNode
        Parameters:
        id - file id
        data - Data object to append to
        replace - true to replace the existing file
        Throws:
        BadFormException - not applicable to this form
      • getForms

        public FormNode getForms(Data data)
        Return the data forms that are compatible with a data object.
        Specified by:
        getForms in class FormNode
        Parameters:
        data - Data object in question
        Returns:
        null for this Form since it doesn't support save.
      • open

        public DataImpl open(java.net.URL url)
                      throws BadFormException,
                             VisADException,
                             java.io.IOException
        Returns a VisAD data object corresponding to a URL pointing to a Vis5D topography file.
        Specified by:
        open in class FormNode
        Parameters:
        url - URL pointing to the Vis5D topography
        Returns:
        A VisAD data object corresponding to the Vis5D topography file.
        Throws:
        BadFormException - if not a Vis5D topo file.
        VisADException - if a problem occurs in core VisAD. Probably a VisAD object couldn't be created.
        java.io.IOException - if an I/O failure occurs.
      • open

        public DataImpl open(java.lang.String id)
                      throws BadFormException,
                             java.io.IOException,
                             VisADException
        Returns a VisAD data object corresponding to a Vis5D topography file.
        Specified by:
        open in class FormNode
        Parameters:
        id - path to the existing Vis5D file.
        Returns:
        A VisAD data object corresponding to the Vis5D dataset.
        Throws:
        BadFormException - if not a Vis5D topo file.
        VisADException - if a problem occurs in core VisAD. Probably a VisAD object couldn't be created.
        java.io.IOException - if an I/O failure occurs.
      • open

        public DataImpl open(java.io.InputStream in)
                      throws BadFormException,
                             java.io.IOException,
                             VisADException
        Returns a VisAD data object corresponding to an input stream for a Vis5DTopography file.
        Parameters:
        in - Input stream
        Returns:
        A VisAD data object corresponding to the Vis5D topo file.
        Throws:
        BadFormException - if not a Vis5D topo file.
        VisADException - if a problem occurs in core VisAD. Probably a VisAD object couldn't be created.
        java.io.IOException - if an I/O failure occurs.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.