Package edu.umd.cs.findbugs.workflow
Class RejarClassesForAnalysis
- java.lang.Object
-
- edu.umd.cs.findbugs.workflow.RejarClassesForAnalysis
-
public class RejarClassesForAnalysis extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classRejarClassesForAnalysis.ClassFileNameMismatch(package private) static classRejarClassesForAnalysis.RejarClassesForAnalysisCommandLine(package private) static interfaceRejarClassesForAnalysis.ZipElementHandler
-
Field Summary
Fields Modifier and Type Field Description (package private) intanalysisCount(package private) java.util.SortedMap<java.lang.String,java.util.zip.ZipOutputStream>analysisOutputFiles(package private) intargCount(package private) java.lang.String[]args(package private) intauxiliaryClassCount(package private) intauxiliaryCount(package private) java.util.zip.ZipOutputStreamauxiliaryOut(package private) byte[]buffer(package private) booleanclassFileFound(package private) RejarClassesForAnalysis.RejarClassesForAnalysisCommandLinecommandLine(package private) java.util.Map<java.lang.String,java.lang.Long>copiedFor each file, give the latest timestamp(package private) java.util.Map<java.lang.String,java.io.File>copyFromWhile file should we copy it from(package private) java.util.Set<java.lang.String>excluded(package private) java.util.TreeSet<java.lang.String>filesToAnalyze(package private) intnumFilesToAnalyze
-
Constructor Summary
Constructors Constructor Description RejarClassesForAnalysis(RejarClassesForAnalysis.RejarClassesForAnalysisCommandLine commandLine, int argCount, java.lang.String[] args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidadvanceAuxiliaryOut()private voidcopyEntry(java.util.zip.ZipFile zipInputFile, java.util.zip.ZipEntry ze, boolean writeToAnalyzeOut, java.util.zip.ZipOutputStream analyzeOut1, boolean writeToAuxiliaryOut, java.util.zip.ZipOutputStream auxiliaryOut1)private java.util.zip.ZipOutputStreamcreateZipFile(java.lang.String fileName)private booleanembeddedNameMismatch(java.util.zip.ZipFile zipInputFile, java.util.zip.ZipEntry ze)private booleanexclude(java.lang.String dottedName)voidexecute()(package private) java.lang.StringgetNextAnalyzeFileOutput()(package private) java.lang.StringgetNextAuxiliaryFileOutput()java.util.zip.ZipOutputStreamgetZipOutputFile(java.lang.String path)static voidmain(java.lang.String[] args)java.util.zip.ZipEntrynewZipEntry(java.util.zip.ZipEntry ze)(package private) booleanprocessZipEntries(java.io.File f, RejarClassesForAnalysis.ZipElementHandler handler)static voidreadFrom(java.util.Collection<java.lang.String> result, java.io.Reader r)static voidreadFromStandardInput(java.util.Collection<java.lang.String> result)
-
-
-
Field Detail
-
commandLine
final RejarClassesForAnalysis.RejarClassesForAnalysisCommandLine commandLine
-
argCount
final int argCount
-
args
final java.lang.String[] args
-
analysisOutputFiles
java.util.SortedMap<java.lang.String,java.util.zip.ZipOutputStream> analysisOutputFiles
-
analysisCount
int analysisCount
-
auxiliaryCount
int auxiliaryCount
-
copied
java.util.Map<java.lang.String,java.lang.Long> copied
For each file, give the latest timestamp
-
copyFrom
java.util.Map<java.lang.String,java.io.File> copyFrom
While file should we copy it from
-
excluded
java.util.Set<java.lang.String> excluded
-
filesToAnalyze
java.util.TreeSet<java.lang.String> filesToAnalyze
-
numFilesToAnalyze
int numFilesToAnalyze
-
auxiliaryClassCount
int auxiliaryClassCount
-
auxiliaryOut
java.util.zip.ZipOutputStream auxiliaryOut
-
buffer
final byte[] buffer
-
classFileFound
boolean classFileFound
-
-
Constructor Detail
-
RejarClassesForAnalysis
public RejarClassesForAnalysis(RejarClassesForAnalysis.RejarClassesForAnalysisCommandLine commandLine, int argCount, java.lang.String[] args)
-
-
Method Detail
-
readFromStandardInput
public static void readFromStandardInput(java.util.Collection<java.lang.String> result) throws java.io.IOException- Throws:
java.io.IOException
-
getZipOutputFile
@Nonnull public java.util.zip.ZipOutputStream getZipOutputFile(java.lang.String path)
-
readFrom
public static void readFrom(java.util.Collection<java.lang.String> result, @WillClose java.io.Reader r) throws java.io.IOException- Throws:
java.io.IOException
-
getNextAuxiliaryFileOutput
java.lang.String getNextAuxiliaryFileOutput()
-
getNextAnalyzeFileOutput
java.lang.String getNextAnalyzeFileOutput()
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
exclude
private boolean exclude(java.lang.String dottedName)
-
execute
public void execute() throws java.io.IOException- Throws:
java.io.IOException
-
createZipFile
private java.util.zip.ZipOutputStream createZipFile(java.lang.String fileName) throws java.io.IOException- Throws:
java.io.IOException
-
embeddedNameMismatch
private boolean embeddedNameMismatch(java.util.zip.ZipFile zipInputFile, java.util.zip.ZipEntry ze) throws java.io.IOException- Throws:
java.io.IOException
-
copyEntry
private void copyEntry(java.util.zip.ZipFile zipInputFile, java.util.zip.ZipEntry ze, boolean writeToAnalyzeOut, java.util.zip.ZipOutputStream analyzeOut1, boolean writeToAuxiliaryOut, java.util.zip.ZipOutputStream auxiliaryOut1) throws java.io.IOException- Throws:
java.io.IOException
-
advanceAuxiliaryOut
private void advanceAuxiliaryOut() throws java.io.IOException- Throws:
java.io.IOException
-
processZipEntries
boolean processZipEntries(java.io.File f, RejarClassesForAnalysis.ZipElementHandler handler)
-
newZipEntry
public java.util.zip.ZipEntry newZipEntry(java.util.zip.ZipEntry ze)
-
-