Interface IReaderImporter
- All Superinterfaces:
IFileImporter
- All Known Implementing Classes:
CommandFusionImporter
,CsvImporter
,CsvParametrizedImporter
,CsvRawImporter
,GirrImporter
,IctImporter
,IrTransImporter
,LircImporter
,Mode2Importer
,RawLineImporter
,XcfImporter
This class models reading from either a file or a stream (Reader), but not from a data base.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
load
(InputStream inputStream, String origin, String charsetName) void
void
Loads from stdin.void
void
If the argument can be parsed as an URL string, load from its content.void
Load from the string given as the first argument.Methods inherited from interface org.harctoolbox.irscrutinizer.importer.IFileImporter
canImportDirectories, getFileExtensions, getFileExtensions, load, loadFileSelector, possiblyZipLoad
-
Method Details
-
load
void load(Reader reader, String origin) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Parameters:
reader
-origin
-- Throws:
IOException
- Generic IO error.ParseException
- Generic parse error.org.harctoolbox.ircore.InvalidArgumentException
-
load
void load(String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException Loads from stdin.- Parameters:
charsetName
-- Throws:
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-
load
void load(InputStream inputStream, String origin, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Parameters:
inputStream
-origin
-charsetName
-- Throws:
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-
load
void load(String payload, String origin, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException Load from the string given as the first argument.- Parameters:
payload
-origin
-charsetName
-- Throws:
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-
load
void load(String urlOrFilename, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException If the argument can be parsed as an URL string, load from its content. Otherwise, consider it as a file name, and load its content.- Parameters:
urlOrFilename
-charsetName
-- Throws:
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-
load
void load(String urlOrFilename, boolean zip, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Throws:
IOException
ParseException
org.harctoolbox.ircore.InvalidArgumentException
-