/** * Get input stream. * * @param name the file to test * @return an input stream to read the contents of this file * @exception FileNotFoundException if the file does not exists or is invalid */ private InputStream getInputStream(String name) throws java.io.FileNotFoundException { Reference ref = findReference(name); if ((ref != null) && (ref instanceof FileObjRef)) { return (((FileObjRef) ref).getInputStream(name)); } throw new FileNotFoundException(NbBundle.getMessage(XMLFileSystem.class, "EXC_CanntRead", name)); // NOI18N }
/** * Get input stream. * * @param name the file to test * @return an input stream to read the contents of this file * @exception FileNotFoundException if the file does not exists or is invalid */ private InputStream getInputStream(String name) throws java.io.FileNotFoundException { Reference ref = findReference(name); if (ref != null && (ref instanceof FileObjRef ) ) { return (((FileObjRef) ref).getInputStream(name)); } throw new FileNotFoundException (NbBundle.getMessage(XMLFileSystem.class, "EXC_CanntRead", name));// NOI18N }
/** * Get input stream. * * @param name the file to test * @return an input stream to read the contents of this file * @exception FileNotFoundException if the file does not exists or is invalid */ private InputStream getInputStream(String name) throws java.io.FileNotFoundException { Reference ref = findReference(name); if (ref != null && (ref instanceof FileObjRef ) ) { return (((FileObjRef) ref).getInputStream(name)); } throw new FileNotFoundException (NbBundle.getMessage(XMLFileSystem.class, "EXC_CanntRead", name));// NOI18N }