org.harctoolbox.irscrutinizer.importer
Class FileImporter

java.lang.Object
  extended by org.harctoolbox.irscrutinizer.importer.Importer
      extended by org.harctoolbox.irscrutinizer.importer.FileImporter
Direct Known Subclasses:
ReaderImporter, WaveImporter

public abstract class FileImporter
extends Importer

This class extends the Importer with file load functions.


Field Summary
 
Fields inherited from class org.harctoolbox.irscrutinizer.importer.Importer
creatingUser, fallbackFrequency, generateCcf, generateRaw, invokeDecodeIr, origin
 
Constructor Summary
protected FileImporter()
           
 
Method Summary
 boolean canImportDirectories()
           
protected  void dumbLoad(java.io.Reader reader, java.lang.String origin)
           
abstract  java.lang.String[][] getFileExtensions()
           
abstract  void load(java.io.File file)
           
 boolean loadFileSelector(java.awt.Component component, java.lang.String title, java.lang.String defaultDir)
           
 
Methods inherited from class org.harctoolbox.irscrutinizer.importer.Importer
addCommand, addCommands, clearCommands, getCommand, getCommandIndex, getCommands, getConcatenatedCommands, getHomeUrl, getOrigin, prepareLoad, setCreatingUser, setFallbackFrequency, setGenerateCcf, setGenerateRaw, setInvokeDecodeIr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileImporter

protected FileImporter()
Method Detail

load

public abstract void load(java.io.File file)
                   throws java.io.IOException,
                          java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

loadFileSelector

public boolean loadFileSelector(java.awt.Component component,
                                java.lang.String title,
                                java.lang.String defaultDir)
                         throws java.io.IOException,
                                java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

dumbLoad

protected void dumbLoad(java.io.Reader reader,
                        java.lang.String origin)
                 throws java.io.FileNotFoundException,
                        java.io.IOException,
                        java.text.ParseException
Throws:
java.io.FileNotFoundException
java.io.IOException
java.text.ParseException

canImportDirectories

public boolean canImportDirectories()

getFileExtensions

public abstract java.lang.String[][] getFileExtensions()