String className = sig.substring(1, sig.length() - 1).replace('/', '.'); if (className.startsWith("ByteArray")) return null; try { boolean isStream = Repository.instanceOf(className, "java.io.InputStream") || Repository.instanceOf(className, "java.io.OutputStream"); return isStream ? new Stream(new Location(handle, basicBlock), className) : null; } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); return null; }
		public Stream isResourceCreation(BasicBlock basicBlock, InstructionHandle handle, ConstantPoolGen cpg) {			Instruction ins = handle.getInstruction();			if (!(ins instanceof NEW))				return null;			NEW newIns = (NEW) ins;			Type type = newIns.getType(cpg);			String sig = type.getSignature();			// TODO: make this more general, to handle all input and output streams			if (sig.equals("Ljava/io/FileInputStream;"))				return new Stream(new Location(handle, basicBlock), "java.io.FileInputStream");			else				return null;		}