Class THREDDSFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class THREDDSFileChooser extends JPanel
The THREDDSFileChooser class allows the user to choose a file from a THREDDS catalog.
Since:
3.3.0
Author:
Xiaoming Liu
See Also:
  • Field Details

  • Constructor Details

    • THREDDSFileChooser

      public THREDDSFileChooser(List serverList)
      Creates a new chooser.
      Parameters:
      serverList - the initial list of ServerTableModel.Entry objects to display. listing.
  • Method Details

    • getDocument

      public Document getDocument(String xml) throws Exception
      Create a Document object with the given xml.
      Parameters:
      xml - The xml.
      Returns:
      A new Document.
      Throws:
      Exception - When something goes wrong.
    • readBytes

      public static byte[] readBytes(InputStream is) throws IOException
      Read the bytes in the given input stream.
      Parameters:
      is - The input stream
      Throws:
      IOException - On badness