org.harctoolbox.irscrutinizer.importer
Class CcfImporter

java.lang.Object
  extended by org.harctoolbox.irscrutinizer.importer.Importer
      extended by org.harctoolbox.irscrutinizer.importer.FileImporter
          extended by org.harctoolbox.irscrutinizer.importer.ReaderImporter
              extended by org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
                  extended by org.harctoolbox.irscrutinizer.importer.CcfImporter
All Implemented Interfaces:
ICommandImporter, IFileImporter, IImporter, IRemoteSetImporter

public class CcfImporter
extends RemoteSetImporter
implements IFileImporter

Class for importing Pronto CCF files of the first generation.


Field Summary
 
Fields inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
remoteSet
 
Fields inherited from class org.harctoolbox.irscrutinizer.importer.Importer
creatingUser, fallbackFrequency, generateCcf, generateRaw, invokeDecodeIr, origin
 
Constructor Summary
CcfImporter()
           
 
Method Summary
 java.lang.String[][] getFileExtensions()
           
 java.lang.String getFormatName()
           
static org.harctoolbox.girr.RemoteSet importCcf(java.lang.String filename)
           
 void load(java.io.File file)
           
 void load(java.io.Reader reader, java.lang.String origin)
           
static void main(java.lang.String[] args)
           
 void setTranslateProntoFont(boolean translateProntoFont)
           
 
Methods inherited from class org.harctoolbox.irscrutinizer.importer.RemoteSetImporter
getRemoteSet, setupCommands, setupRemote, setupRemoteSet, setupRemoteSet
 
Methods inherited from class org.harctoolbox.irscrutinizer.importer.ReaderImporter
load, load, load, load
 
Methods inherited from class org.harctoolbox.irscrutinizer.importer.FileImporter
canImportDirectories, dumbLoad, loadFileSelector
 
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
 
Methods inherited from interface org.harctoolbox.irscrutinizer.importer.IFileImporter
canImportDirectories, loadFileSelector
 
Methods inherited from interface org.harctoolbox.irscrutinizer.importer.ICommandImporter
getCommand, getCommands, getConcatenatedCommands
 
Methods inherited from interface org.harctoolbox.irscrutinizer.importer.IImporter
setCreatingUser, setFallbackFrequency, setGenerateCcf, setGenerateRaw, setInvokeDecodeIr
 

Constructor Detail

CcfImporter

public CcfImporter()
Method Detail

setTranslateProntoFont

public void setTranslateProntoFont(boolean translateProntoFont)
Parameters:
translateProntoFont - the translateProntoFont to set

getFileExtensions

public java.lang.String[][] getFileExtensions()
Specified by:
getFileExtensions in interface IFileImporter
Specified by:
getFileExtensions in class FileImporter

load

public void load(java.io.Reader reader,
                 java.lang.String origin)
          throws java.io.IOException,
                 java.io.FileNotFoundException,
                 java.text.ParseException
Specified by:
load in class ReaderImporter
Throws:
java.io.IOException
java.io.FileNotFoundException
java.text.ParseException

load

public void load(java.io.File file)
          throws java.io.IOException
Specified by:
load in interface IFileImporter
Overrides:
load in class ReaderImporter
Throws:
java.io.IOException

importCcf

public static org.harctoolbox.girr.RemoteSet importCcf(java.lang.String filename)
                                                throws java.io.IOException,
                                                       java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException

getFormatName

public java.lang.String getFormatName()
Specified by:
getFormatName in interface IImporter
Returns:
Name of the importer. May contain spaces and other "funny" characters. Should be one word, and not end with "Importer" or such.

main

public static void main(java.lang.String[] args)