public void parse(Reader xml, String sourceName) throws IOException { if (xml != null && (sourceName == null || !parsed(sourceName))) parseNewResource(xml, sourceName); }
public void parse(Reader xml, String sourceName) throws IOException { if (xml != null && (sourceName == null || !parsed(sourceName))) parseNewResource(xml, sourceName); }
public void parse(Reader xml, String sourceName) throws IOException { if (xml != null && (sourceName == null || !parsed(sourceName))) parseNewResource(xml, sourceName); }
public void parse(Reader xml, String sourceName) throws IOException { if (xml != null && (sourceName == null || !parsed(sourceName))) parseNewResource(xml, sourceName); }
/** * Parse the resources returned by the given iterator, optionally stopping * when the first valid resource is found. */ private void parse(MetaDataIterator itr, boolean stopFirst) throws IOException { if (itr == null) return; try { String sourceName; while (itr.hasNext()) { sourceName = itr.next().toString(); if (parsed(sourceName)) { if (stopFirst) break; continue; } // individual files of the resource might already be parsed _sourceFile = itr.getFile(); parseNewResource(new InputStreamReader(itr.getInputStream()), sourceName); if (stopFirst) break; } } finally { itr.close(); } }
/** * Parse the resources returned by the given iterator, optionally stopping * when the first valid resource is found. */ private void parse(MetaDataIterator itr, boolean stopFirst) throws IOException { if (itr == null) return; try { String sourceName; while (itr.hasNext()) { sourceName = itr.next().toString(); if (parsed(sourceName)) { if (stopFirst) break; continue; } // individual files of the resource might already be parsed _sourceFile = itr.getFile(); parseNewResource(new InputStreamReader(itr.getInputStream()), sourceName); if (stopFirst) break; } } finally { itr.close(); } }
/** * Parse the resources returned by the given iterator, optionally stopping * when the first valid resource is found. */ private void parse(MetaDataIterator itr, boolean stopFirst) throws IOException { if (itr == null) return; try { String sourceName; while (itr.hasNext()) { sourceName = itr.next().toString(); if (parsed(sourceName)) { if (stopFirst) break; continue; } // individual files of the resource might already be parsed _sourceFile = itr.getFile(); parseNewResource(new InputStreamReader(itr.getInputStream()), sourceName); if (stopFirst) break; } } finally { itr.close(); } }
/** * Parse the resources returned by the given iterator, optionally stopping * when the first valid resource is found. */ private void parse(MetaDataIterator itr, boolean stopFirst) throws IOException { if (itr == null) return; try { String sourceName; while (itr.hasNext()) { sourceName = itr.next().toString(); if (parsed(sourceName)) { if (stopFirst) break; continue; } // individual files of the resource might already be parsed _sourceFile = itr.getFile(); parseNewResource(new InputStreamReader(itr.getInputStream()), sourceName); if (stopFirst) break; } } finally { itr.close(); } }