Previous Next        Current Page: NeXtMidas Training / Working with Files / File Types / File Interfaces
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
   - File Basics   
   + The AUX List   
   + Basic File Commands   
   + Lab 1   
   + File Names   
   - File Types   
      - File Handlers   
      - Handlers Table   
      - File Interfaces   
      - Supported File Types   
      - Table (.tbl) Files   
      - XML (.xml) Files   
   + Lab 2   
   + Listing Files   
   + Lab 3   
   + Plotting Files   
   + Lab 4   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • File Interfaces:
    • Java supports the use of Interfaces.
      • An interface is a definition of the methods that will be present in any implementing class.
      • A class can implement more than one interface if it so chooses, it just needs to provide all of the methods required by all of the implemented interfaces.
      • An interface can be thought of as a guaranteed contract stating that "by implementing this interface I guarantee this class will implement these methods specified by the interface."
      • This allows the interface to be used as a reference type that allows any class implementing the interface to be used without altering the code.
    • NeXtMidas makes use of interfaces for plotting and listing files.
      • Any file whose handler implements PlotFile can be plotted by PLOT.
      • Any file whose handler implements ListFile can be listed by LIST2.
X-Midas Users Take Note:
File support for X-Midas is part of the system libraries and can not be modified without altering the X-Midas baseline. In NeXtMidas option trees can add their own file handlers, at run-time, without altering the NeXtMidas baseline.