Package edu.umd.cs.findbugs.classfile

Examples of edu.umd.cs.findbugs.classfile.ResourceNotFoundException


            return javaClass;
        } catch (RuntimeException e) {
            throw new RuntimeException("Unable to parse classfile for " + descriptor, e);
        } catch (IOException e) {
            throw new ResourceNotFoundException(descriptor.toResourceName(), e);
        }
    }
View Full Code Here


            // Copy nested zipfile to the temporary file
            // FIXME: potentially long blocking operation - should be
            // interruptible
            ICodeBaseEntry resource = parentCodeBase.lookupResource(resourceName);
            if (resource == null) {
                throw new ResourceNotFoundException(resourceName);
            }
            inputStream = resource.openResource();
            outputStream = new BufferedOutputStream(new FileOutputStream(tempFile));
            IO.copy(inputStream, outputStream);
            outputStream.flush();
View Full Code Here

            }

            // If not found in any codebase, then throw
            // ResourceNotFoundException
            if (result == null) {
                throw new ResourceNotFoundException(resourceName);
            }

            // Cache the entry for future lookups
            codeBaseEntryMap.put(resourceName, result);
        }
View Full Code Here

                    IO.close(in);
                }
            }
        } catch (IOException e) {
            // XXX: file name isn't really the resource name, but whatever
            throw new ResourceNotFoundException(fileName);
        }
    }
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.classfile.ResourceNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.