org.harctoolbox.irscrutinizer.importer
Class GirrImporter

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.GirrImporter
All Implemented Interfaces:
java.io.Serializable, ICommandImporter, IFileImporter, IImporter, IReaderImporter, IRemoteSetImporter

public class GirrImporter
extends RemoteSetImporter
implements IReaderImporter, java.io.Serializable

This class imports Girr files. Only Girr files having remotes as root element are presently supported.

See Also:
Serialized Form

Field Summary
static java.lang.String homeUrl
           
 
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
GirrImporter()
           
GirrImporter(boolean validate, javax.xml.validation.Schema schema)
           
GirrImporter(boolean validate, java.net.URL schemaUrl)
           
 
Method Summary
 boolean canImportDirectories()
           
 java.lang.String[][] getFileExtensions()
           
 java.lang.String getFormatName()
           
 javax.xml.validation.Schema getSchema()
           
 void load(java.io.File file)
           
 void load(java.io.InputStream inputStream, java.lang.String origin)
           
 void load(java.io.Reader reader, java.lang.String origin)
           
 void setSchema(java.io.File schemaFile)
           
 void setSchema(javax.xml.validation.Schema schema)
           
 void setValidate(boolean validate)
           
 
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
 
Methods inherited from class org.harctoolbox.irscrutinizer.importer.FileImporter
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.IReaderImporter
load, load, load
 
Methods inherited from interface org.harctoolbox.irscrutinizer.importer.IFileImporter
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
 

Field Detail

homeUrl

public static final java.lang.String homeUrl
See Also:
Constant Field Values
Constructor Detail

GirrImporter

public GirrImporter()

GirrImporter

public GirrImporter(boolean validate,
                    javax.xml.validation.Schema schema)

GirrImporter

public GirrImporter(boolean validate,
                    java.net.URL schemaUrl)
             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

getSchema

public javax.xml.validation.Schema getSchema()
Returns:
the schema

setSchema

public void setSchema(javax.xml.validation.Schema schema)
Parameters:
schema - the schema to set

setSchema

public void setSchema(java.io.File schemaFile)
               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

setValidate

public void setValidate(boolean validate)

load

public void load(java.io.InputStream inputStream,
                 java.lang.String origin)
          throws java.io.IOException,
                 java.text.ParseException
Specified by:
load in interface IReaderImporter
Overrides:
load in class ReaderImporter
Throws:
java.io.IOException
java.text.ParseException

load

public void load(java.io.Reader reader,
                 java.lang.String origin)
          throws java.io.IOException,
                 java.text.ParseException
Specified by:
load in interface IReaderImporter
Specified by:
load in class ReaderImporter
Throws:
java.io.IOException - Generic IO error.
java.text.ParseException - Generic parse error.

load

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

canImportDirectories

public boolean canImportDirectories()
Specified by:
canImportDirectories in interface IFileImporter
Overrides:
canImportDirectories in class FileImporter

getFileExtensions

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

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.