Package edu.umd.cs.findbugs.ba
Class FileSourceFileDataSource
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.FileSourceFileDataSource
-
- All Implemented Interfaces:
SourceFileDataSource
public class FileSourceFileDataSource extends java.lang.Object implements SourceFileDataSource
Data source for source files which are stored in the filesystem.
-
-
Constructor Summary
Constructors Constructor Description FileSourceFileDataSource(java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFullFileName()
Get the full filename of the source file.java.net.URI
getFullURI()
Get the full URI of the source file.long
getLastModified()
java.io.InputStream
open()
Open an InputStream on the source file.
-
-
-
Method Detail
-
open
public java.io.InputStream open() throws java.io.IOException
Description copied from interface:SourceFileDataSource
Open an InputStream on the source file.- Specified by:
open
in interfaceSourceFileDataSource
- Throws:
java.io.IOException
-
getFullFileName
public java.lang.String getFullFileName()
Description copied from interface:SourceFileDataSource
Get the full filename of the source file.- Specified by:
getFullFileName
in interfaceSourceFileDataSource
-
getFullURI
public java.net.URI getFullURI()
Description copied from interface:SourceFileDataSource
Get the full URI of the source file.- Specified by:
getFullURI
in interfaceSourceFileDataSource
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceSourceFileDataSource
-
-