/** * Parse the names in the given metadata iterator stream, closing the * stream on completion. */ private void appendTypeNames(Object source, InputStream in, List names) throws IOException { try { if (source.toString().endsWith(".class")) names.add(getFromClass(in)); names.addAll(getFromMetaData(new InputStreamReader(in))); } finally { try { in.close(); } catch (IOException ioe) { } } }
/** * Parse the names in the given metadata iterator stream, closing the * stream on completion. */ private void appendTypeNames(Object source, InputStream in, List<String> names) throws IOException { try { if (source.toString().endsWith(".class")) names.add(getFromClass(in)); names.addAll(getFromMetaData(new InputStreamReader(in))); } finally { try { in.close(); } catch (IOException ioe) { } } }
/** * Parse the names in the given metadata iterator stream, closing the * stream on completion. */ private void appendTypeNames(Object source, InputStream in, List<String> names) throws IOException { try { if (source.toString().endsWith(".class")) names.add(getFromClass(in)); names.addAll(getFromMetaData(new InputStreamReader(in))); } finally { try { in.close(); } catch (IOException ioe) { } } }
/** * Parse the names in the given metadata iterator stream, closing the * stream on completion. */ private void appendTypeNames(Object source, InputStream in, List<String> names) throws IOException { try { if (source.toString().endsWith(".class")) names.add(getFromClass(in)); names.addAll(getFromMetaData(new InputStreamReader(in))); } finally { try { in.close(); } catch (IOException ioe) { } } }
/** * Returns the class named in the given .class file. */ private String getFromClassFile(File file) throws IOException { FileInputStream fin = null; try { fin = AccessController.doPrivileged( J2DoPrivHelper.newFileInputStreamAction(file)); return getFromClass(fin); } catch (PrivilegedActionException pae) { throw (FileNotFoundException) pae.getException(); } finally { if (fin != null) try { fin.close(); } catch (IOException ioe) { } } }
/** * Returns the class named in the given .class file. */ private String getFromClassFile(File file) throws IOException { FileInputStream fin = null; try { fin = AccessController.doPrivileged( J2DoPrivHelper.newFileInputStreamAction(file)); return getFromClass(fin); } catch (PrivilegedActionException pae) { throw (FileNotFoundException) pae.getException(); } finally { if (fin != null) try { fin.close(); } catch (IOException ioe) { } } }
/** * Returns the class named in the given .class file. */ private String getFromClassFile(File file) throws IOException { FileInputStream fin = null; try { fin = AccessController.doPrivileged( J2DoPrivHelper.newFileInputStreamAction(file)); return getFromClass(fin); } catch (PrivilegedActionException pae) { throw (FileNotFoundException) pae.getException(); } finally { if (fin != null) try { fin.close(); } catch (IOException ioe) { } } }
/** * Returns the class named in the given .class file. */ private String getFromClassFile(File file) throws IOException { FileInputStream fin = null; try { fin = (FileInputStream) AccessController.doPrivileged( J2DoPrivHelper.newFileInputStreamAction(file)); return getFromClass(fin); } catch (PrivilegedActionException pae) { throw (FileNotFoundException) pae.getException(); } finally { if (fin != null) try { fin.close(); } catch (IOException ioe) { } } }