public Object next() throws IOException { if (!hasNext()) throw new NoSuchElementException(); return _itr.next(); }
public Object next() throws IOException { if (!hasNext()) throw new NoSuchElementException(); return _itr.next(); }
public Object next() throws IOException { if (!hasNext()) throw new NoSuchElementException(); return _itr.next(); }
public Object next() throws IOException { if (!hasNext()) throw new NoSuchElementException(); return _itr.next(); }
/** * Return a mapping of each metadata resource to an array of its contained * class names. */ public Map<Object, String[]> mapTypeNames(MetaDataIterator itr) { if (itr == null) return Collections.emptyMap(); Map<Object, String []> map = new HashMap<Object, String[]>(); Object source = null; List<String> names = new ArrayList<String>(); try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); if (!names.isEmpty()) { map.put(source, names.toArray(new String[names.size()])); } names.clear(); } } catch (Exception e) { throw new RuntimeException( _loc.get("class-arg", source).getMessage(), e); } return map; }
/** * Return a mapping of each metadata resource to an array of its contained * class names. */ public Map<Object, String[]> mapTypeNames(MetaDataIterator itr) { if (itr == null) return Collections.emptyMap(); Map<Object, String []> map = new HashMap<Object, String[]>(); Object source = null; List<String> names = new ArrayList<String>(); try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); if (!names.isEmpty()) { map.put(source, names.toArray(new String[names.size()])); } names.clear(); } } catch (Exception e) { throw new RuntimeException( _loc.get("class-arg", source).getMessage(), e); } return map; }
/** * Return the names of the class(es) from the given metadatas. */ public String[] parseTypeNames(MetaDataIterator itr) { if (itr == null) return new String[0]; List<String> names = new ArrayList<String>(); Object source = null; try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); } } catch (Exception e) { throw new RuntimeException( _loc.get("class-arg", source).getMessage(), e); } return names.toArray(new String[names.size()]); }
/** * Return a mapping of each metadata resource to an array of its contained * class names. */ public Map<Object, String[]> mapTypeNames(MetaDataIterator itr) { if (itr == null) return Collections.emptyMap(); Map<Object, String []> map = new HashMap<Object, String[]>(); Object source = null; List<String> names = new ArrayList<String>(); try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); if (!names.isEmpty()) { map.put(source, names.toArray(new String[names.size()])); } names.clear(); } } catch (Exception e) { throw new NestableRuntimeException( _loc.get("class-arg", source).getMessage(), e); } return map; }
/** * Return the names of the class(es) from the given metadatas. */ public String[] parseTypeNames(MetaDataIterator itr) { if (itr == null) return new String[0]; List<String> names = new ArrayList<String>(); Object source = null; try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); } } catch (Exception e) { throw new RuntimeException( _loc.get("class-arg", source).getMessage(), e); } return names.toArray(new String[names.size()]); }
/** * Return a mapping of each metadata resource to an array of its contained * class names. */ public Map mapTypeNames(MetaDataIterator itr) { if (itr == null) return Collections.EMPTY_MAP; Map map = new HashMap(); Object source = null; List names = new ArrayList(); try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); if (!names.isEmpty()) map.put(source, (String[]) names.toArray (new String[names.size()])); names.clear(); } } catch (Exception e) { throw new NestableRuntimeException( _loc.get("class-arg", source).getMessage(), e); } return map; }
/** * Return the names of the class(es) from the given metadatas. */ public String[] parseTypeNames(MetaDataIterator itr) { if (itr == null) return new String[0]; List<String> names = new ArrayList<String>(); Object source = null; try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); } } catch (Exception e) { throw new NestableRuntimeException( _loc.get("class-arg", source).getMessage(), e); } return names.toArray(new String[names.size()]); }
/** * Return the names of the class(es) from the given metadatas. */ public String[] parseTypeNames(MetaDataIterator itr) { if (itr == null) return new String[0]; List names = new ArrayList(); Object source = null; try { while (itr.hasNext()) { source = itr.next(); appendTypeNames(source, itr.getInputStream(), names); } } catch (Exception e) { throw new NestableRuntimeException( _loc.get("class-arg", source).getMessage(), e); } return (String[]) names.toArray(new String[names.size()]); }
/** * 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(); } }
mitr = new ResourceMetaDataIterator(rsrc, loader); while (mitr.hasNext()) { url = (URL) mitr.next(); clss = cparser.parseTypeNames(new URLMetaDataIterator (url));
url = (URL) mitr.next(); String urlString = url.toString(); if (log.isTraceEnabled())
url = (URL) mitr.next(); String urlString = url.toString(); if (log.isTraceEnabled())
url = (URL) mitr.next(); String urlString = url.toString(); if (log.isTraceEnabled())