|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.importer.base.util.ImporterUtil
public class ImporterUtil
Utility methods for the import process.
Constructor Summary | |
---|---|
ImporterUtil()
The default constructor. |
|
ImporterUtil(IImporterPluginRegistryProvider provider)
Constructor which allows to set custom IImporterPluginRegistryProvider instance. |
Method Summary | |
---|---|
org.eclipse.core.runtime.IConfigurationElement[] |
getConversionRuleConfigurations()
Returns configuration elements of extensions for pl.edu.agh.cast.importer.base.conversionrule
extension point. |
String |
getConversionRuleDescription(String conversionRuleId)
Delegated method. |
List<ConversionRuleInfo> |
getConversionRuleInfos()
Delegated method. |
IConversionRule |
getConversionRuleInstance(String conversionRuleId)
Delegated method. |
String |
getConverterDescription(String converterId)
Delegated method. |
List<ImportConverterInfo> |
getConverterInfos()
Delegated method. |
IImportConverter |
getConverterInstance(String converterId)
Delegated method. |
org.eclipse.core.runtime.IConfigurationElement[] |
getConvertersConfigurations()
Returns configuration elements of extensions for pl.edu.agh.cast.importer.base.converter extension
point. |
org.eclipse.core.runtime.IConfigurationElement[] |
getDataTypeConfigurations()
Returns configuration elements of extensions for pl.edu.agh.cast.importer.base.datatype extension
point. |
List<DataTypeInfo> |
getDataTypeInfos()
Deletaget method. |
Charset |
getFileCharset(String path,
IImportTokenizer tokenizer)
Detects the file encoding for file with the specified path using the specified tokenizer. |
Charset |
getFileCharset(String path,
String tokenizerId)
Detects the file encoding for file with the specified path using the tokenizer with specified id. |
Map<String,String> |
getSupportedFileExtensions()
Delegated method. |
String |
getTokenizerDescription(String tokenizerId)
Delegated method. |
List<TokenizerInfo> |
getTokenizerInfos()
Delegated method. |
IImportTokenizer |
getTokenizerInstance(String tokenizerId)
Delegated method. |
org.eclipse.core.runtime.IConfigurationElement[] |
getTokenizersConfigurations()
Returns configuration elements of extensions for pl.edu.agh.cast.importer.base.tokenizer extension
point. |
List<RawTabularData> |
tokenizeData(String path,
IImportTokenizer tokenizer,
long rowsLimit,
org.eclipse.core.runtime.IProgressMonitor monitor)
Tokenizes the specified number of rows from given file using the specified tokenizer and its options. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImporterUtil()
DefaultImporterPluginRegistryProvider
.
public ImporterUtil(IImporterPluginRegistryProvider provider)
IImporterPluginRegistryProvider
instance. If null is passed, the
DefaultImporterPluginRegistryProvider
is used. This constructor should be used in tests.
provider
- custom provider instanceMethod Detail |
---|
public org.eclipse.core.runtime.IConfigurationElement[] getTokenizersConfigurations()
pl.edu.agh.cast.importer.base.tokenizer
extension
point.
public org.eclipse.core.runtime.IConfigurationElement[] getConvertersConfigurations()
pl.edu.agh.cast.importer.base.converter
extension
point.
public org.eclipse.core.runtime.IConfigurationElement[] getConversionRuleConfigurations()
pl.edu.agh.cast.importer.base.conversionrule
extension point.
public org.eclipse.core.runtime.IConfigurationElement[] getDataTypeConfigurations()
pl.edu.agh.cast.importer.base.datatype
extension
point.
public List<RawTabularData> tokenizeData(String path, IImportTokenizer tokenizer, long rowsLimit, org.eclipse.core.runtime.IProgressMonitor monitor) throws IOException
path
- the path to the file containing the datatokenizer
- the tokenizer extension (defined in the plugin.xml file)rowsLimit
- the number of rows to be tokenized (put Long.MAX_VALUE to import all the data)monitor
- the progress monitor for the tokenization operation
IOException
org.eclipse.core.runtime.CoreException
public Charset getFileCharset(String path, String tokenizerId) throws IOException, org.eclipse.core.runtime.CoreException
path
- the path to the file containing the datatokenizerId
- the identifier of the tokenizer extension (defined in the plugin.xml file)
IOException
org.eclipse.core.runtime.CoreException
public Charset getFileCharset(String path, IImportTokenizer tokenizer) throws IOException
path
- the path to the file containing the datatokenizer
- the tokenizer extension (defined in the plugin.xml file)
IOException
org.eclipse.core.runtime.CoreException
public IImportTokenizer getTokenizerInstance(String tokenizerId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getTokenizerInstance(java.lang.String)
public IImportConverter getConverterInstance(String converterId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getConverterInstance(java.lang.String)
public IConversionRule getConversionRuleInstance(String conversionRuleId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
#getConversionRuleInstance(java.lang.String)
public String getTokenizerDescription(String tokenizerId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getTokenizerDescription(java.lang.String)
public Map<String,String> getSupportedFileExtensions() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
getSupportedFileExtensions()
public String getConverterDescription(String converterId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getConverterDescription(java.lang.String)
public String getConversionRuleDescription(String conversionRuleId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
#getConversionRuleDescription(java.lang.String)
public List<TokenizerInfo> getTokenizerInfos() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getTokenizerInfos()
public List<ConversionRuleInfo> getConversionRuleInfos() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getConversionRuleInfos()
public List<ImportConverterInfo> getConverterInfos() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getConverterInfos()
public List<DataTypeInfo> getDataTypeInfos() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
IImporterPluginRegistryProvider.getDataTypeInfos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |