Interface SaveableFilter

All Known Implementing Classes:
DestinationFilter, FirstDigipeatFilterUI, LastDigipeatFilterUI, SendingStationFilter, SymbolFilter

public interface SaveableFilter
This interface specifies additional methods a Filter should implement to allow the contents of the filter dataset to be saved to a file.
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • isSaveable

      boolean isSaveable()
      Indicate if this Filter is saveable. Meant for use by combining filters whose sub-Filters may not all be savable.
      Returns:
      boolean true if the current Filter can be saved
    • getPreferredFileType

      FileNameExtensionFilter getPreferredFileType()
      Specify the preferred filetype for files saving this Filter's data set.
      Returns:
      FileNameExtensionFilter that will be used in the saving JFileChooser
    • saveFilterToFile

      void saveFilterToFile(BufferedOutputStream out) throws IOException
      Save the contents of the Filter to the specified DataOutput object.
      Parameters:
      out - DataOutput implementing object for writing the file contents in its preferred format
      Throws:
      IOException - if the write failed for some reason