Package edu.umd.cs.findbugs.detect
Class IOStreamFactory
java.lang.Object
edu.umd.cs.findbugs.detect.IOStreamFactory
- All Implemented Interfaces:
StreamFactory
A StreamFactory for normal java.io streams that are created using NEW
instructions.
-
Constructor Summary
ConstructorDescriptionIOStreamFactory
(String baseClass, String[] uninterestingSubclassList, String bugType) -
Method Summary
Modifier and TypeMethodDescriptioncreateStream
(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) Determine if a Stream is created at given location.toString()
-
Constructor Details
-
IOStreamFactory
-
-
Method Details
-
toString
-
createStream
public Stream createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback) Description copied from interface:StreamFactory
Determine if a Stream is created at given location.- Specified by:
createStream
in interfaceStreamFactory
- Parameters:
location
- the Locationtype
- the ObjectType associated with the instruction at the location; the StreamResourceTracker prescreens for TypedInstructions that are associated with ObjectTypes, since they are the only instructions that could conceivably create a stream objectcpg
- the ConstantPoolGen for the methodlookupFailureCallback
- used to report missing classes in the class hierarchy- Returns:
- a Stream created at the Location, or null if no stream is created there
-