Class ZipDataSource
- java.lang.Object
-
- net.sourceforge.pmd.util.datasource.internal.AbstractDataSource
-
- net.sourceforge.pmd.util.datasource.ZipDataSource
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,DataSource
@Deprecated public class ZipDataSource extends net.sourceforge.pmd.util.datasource.internal.AbstractDataSource
Deprecated.DataSource implementation to read data from an entry in a zip or jar file.
-
-
Constructor Summary
Constructors Constructor Description ZipDataSource(ZipFile zipFile, ZipEntry zipEntry)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.boolean
equals(Object obj)
Deprecated.InputStream
getInputStream()
Deprecated.Get an InputStream on the source file.String
getNiceFileName(boolean shortNames, String inputFileName)
Deprecated.Return a nice version of the filename.int
hashCode()
Deprecated.String
toString()
Deprecated.
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Description copied from interface:DataSource
Get an InputStream on the source file.- Returns:
- the InputStream reading the source file
- Throws:
IOException
- if the file can't be opened
-
getNiceFileName
public String getNiceFileName(boolean shortNames, String inputFileName)
Deprecated.Description copied from interface:DataSource
Return a nice version of the filename.- Parameters:
shortNames
- true if short names are being usedinputFileName
- name of a "master" file this file is relative to- Returns:
- String
-
close
public void close() throws IOException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classnet.sourceforge.pmd.util.datasource.internal.AbstractDataSource
- Throws:
IOException
-
-