private static String remove(String lang) { if ( rewiredAlternative != null ) Log.error(RDFReaderFImpl.class, "Rewired RDFReaderFImpl - configuration changes have no effect on reading"); String oldClassName = currentEntry(lang); custom.remove(lang); return oldClassName; } }
private static String remove(String lang) { if ( rewiredAlternative != null ) Log.error(RDFReaderFImpl.class, "Rewired RDFReaderFImpl - configuration changes have no effect on reading"); String oldClassName = currentEntry(lang); custom.remove(lang); return oldClassName; } }
/** * Use RIOT to add custom RDF parsers. See * {@code RDFParserRegistry.registerLang} * * @deprecated Register with RIOT. */ @Deprecated public static String setBaseReaderClassName(String lang, String className) { if ( rewiredAlternative != null ) Log.error(RDFReaderFImpl.class, "Rewired RDFReaderFImpl - configuration changes have no effect on reading"); String oldClassName = currentEntry(lang); try { @SuppressWarnings("unchecked") Class<? extends RDFReader> newClass = (Class<? extends RDFReader>)Class.forName(className, false, Thread.currentThread().getContextClassLoader()); custom.put(lang, newClass); return oldClassName; } catch (ClassNotFoundException e) { throw new ConfigException("Reader not found on classpath", e); } catch (Exception e) { throw new JenaException(e); } }
/** * Use RIOT to add custom RDF parsers. See * {@code RDFParserRegistry.registerLang} * * @deprecated Register with RIOT. */ @Deprecated public static String setBaseReaderClassName(String lang, String className) { if ( rewiredAlternative != null ) Log.error(RDFReaderFImpl.class, "Rewired RDFReaderFImpl - configuration changes have no effect on reading"); String oldClassName = currentEntry(lang); try { @SuppressWarnings("unchecked") Class<? extends RDFReader> newClass = (Class<? extends RDFReader>)Class.forName(className, false, Thread.currentThread().getContextClassLoader()); custom.put(lang, newClass); return oldClassName; } catch (ClassNotFoundException e) { throw new ConfigException("Reader not found on classpath", e); } catch (Exception e) { throw new JenaException(e); } }