net.sourceforge.pmd

Class ZipDataSource

public class ZipDataSource extends Object implements DataSource

DataSource implementation to read data from an entry in a zip or jar file.
Constructor Summary
ZipDataSource(ZipFile zipFile, ZipEntry zipEntry)
Method Summary
InputStreamgetInputStream()
StringgetNiceFileName(boolean shortNames, String inputFileName)

Constructor Detail

ZipDataSource

public ZipDataSource(ZipFile zipFile, ZipEntry zipEntry)

Parameters: zipFile the ZipFile zipEntry the ZipEntry containing the file to read

Method Detail

getInputStream

public InputStream getInputStream()

getNiceFileName

public String getNiceFileName(boolean shortNames, String inputFileName)