Interface IReaderImporter
- All Superinterfaces:
IFileImporter
- All Known Implementing Classes:
CommandFusionImporter,CsvImporter,CsvParametrizedImporter,CsvRawImporter,FlipperImporter,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 TypeMethodDescriptionvoidload(InputStream inputStream, String origin, String charsetName) voidvoidLoads from stdin.voidvoidIf the argument can be parsed as an URL string, load from its content.voidLoad 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:
IOExceptionParseExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
load
void load(InputStream inputStream, String origin, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Parameters:
inputStream-origin-charsetName-- Throws:
IOExceptionParseExceptionorg.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:
IOExceptionParseExceptionorg.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:
IOExceptionParseExceptionorg.harctoolbox.ircore.InvalidArgumentException
-
load
void load(String urlOrFilename, boolean zip, String charsetName) throws IOException, ParseException, org.harctoolbox.ircore.InvalidArgumentException - Throws:
IOExceptionParseExceptionorg.harctoolbox.ircore.InvalidArgumentException
-