final class InstrProcessorST extends InstrProcessor implements IAppErrorCodes
Modifier and Type | Class and Description |
---|---|
private static class |
InstrProcessorST.EntryWriteJob |
private static class |
InstrProcessorST.FileWriteJob |
private static class |
InstrProcessorST.Job |
InstrProcessor.OutMode
Modifier and Type | Field and Description |
---|---|
private static int |
BUF_SIZE |
private static boolean |
CLEANUP_TEMP_ARCHIVE_ON_ERRORS |
private static boolean |
DO_DEPENDS_CHECKING |
private static boolean |
DO_RAF_EXTENSION |
private static java.lang.Class[] |
EXPECTED_FAILURES |
private static int |
JOB_QUEUE_SIZE |
private java.util.jar.JarOutputStream |
m_archiveOut |
private ByteArrayOStream |
m_baos |
private long |
m_currentArchiveTS |
private InstrVisitor.InstrResult |
m_instrResult |
private int |
m_jobPos |
private InstrProcessorST.Job[] |
m_jobs |
private IMetaData |
m_mdata |
private java.io.File |
m_origArchiveFile |
private byte[] |
m_readbuf |
private int |
m_readpos |
private java.io.File |
m_tempArchiveFile |
private long |
m_timeStamp |
private InstrVisitor |
m_visitor |
CLASSES, DEFAULT_DO_SUID_COMPENSATION, DEFAULT_EXCLUDE_BRIDGE_METHODS, DEFAULT_EXCLUDE_SYNTHETIC_METHODS, IN_CLASSES, IN_LIB, LIB, m_canonical, m_classCopies, m_classInstrs, m_coverageFilter, m_dependsMode, m_instrPath, m_mdataOutFile, m_mdataOutMerge, m_outDir, m_outMode, PROPERTY_DO_SUID_COMPENSATION, PROPERTY_EXCLUDE_BRIDGE_METHODS, PROPERTY_EXCLUDE_SYNTHETIC_METHODS
m_appName, m_log, m_propertyOverrides
ARGS_IO_FAILURE, CLASS_STAMP_MISMATCH, INSTR_IO_FAILURE, INVALID_COLUMN_NAME, INVALID_PARAMETER_VALUE, MAIN_CLASS_BAD_DELEGATION, MAIN_CLASS_LOAD_FAILURE, MAIN_CLASS_NOT_FOUND, MAIN_METHOD_FAILURE, MAIN_METHOD_NOT_FOUND, OUT_IO_FAILURE, OUT_MKDIR_FAILURE, REPORT_GEN_FAILURE, REPORT_IO_FAILURE, REQUIRED_PARAMETER_MISSING, SECURITY_RESTRICTION, UNEXPECTED_FAILURE
Constructor and Description |
---|
InstrProcessorST() |
Modifier and Type | Method and Description |
---|---|
protected void |
_run(IProperties toolProperties) |
private void |
addJob(InstrProcessorST.Job job) |
private void |
drainJobQueue() |
private void |
ensureReadCapacity(int capacity) |
void |
handleArchiveEnd(java.io.File parentDir,
java.io.File archive)
Called after the enumerator's zip input stream for this archive
has been closed.
|
void |
handleArchiveEntry(java.util.jar.JarInputStream in,
java.util.zip.ZipEntry entry) |
void |
handleArchiveStart(java.io.File parentDir,
java.io.File archive,
java.util.jar.Manifest manifest)
Called just after the enumerator's zip input stream for this archive
is opened and the manifest entry is read.
|
void |
handleDirEnd(java.io.File pathDir,
java.io.File dir) |
void |
handleDirStart(java.io.File pathDir,
java.io.File dir) |
void |
handleFile(java.io.File pathDir,
java.io.File file) |
private void |
readFile(java.io.File file) |
private void |
readZipEntry(java.util.zip.ZipInputStream in,
java.util.zip.ZipEntry entry) |
protected void |
reset() |
(package private) static void |
writeFile(byte[] data,
java.io.File outFile,
boolean mkdirs) |
(package private) static void |
writeZipEntry(byte[] data,
java.util.zip.ZipOutputStream out,
java.util.zip.ZipEntry entry,
boolean isCopy) |
create, createDir, getFullOutDir, getFullOutFile, setDependsMode, setInclExclFilter, setInstrOutDir, setInstrPath, setMetaOutFile, setMetaOutMerge, setOutMode, validateState
run, setAppName, setPropertyOverrides, setPropertyOverrides
private final InstrProcessorST.Job[] m_jobs
private final InstrVisitor.InstrResult m_instrResult
private InstrVisitor m_visitor
private IMetaData m_mdata
private byte[] m_readbuf
private int m_readpos
private ByteArrayOStream m_baos
private int m_jobPos
private long m_currentArchiveTS
private java.io.File m_origArchiveFile
private java.io.File m_tempArchiveFile
private java.util.jar.JarOutputStream m_archiveOut
private long m_timeStamp
private static final int BUF_SIZE
private static final int JOB_QUEUE_SIZE
private static final boolean CLEANUP_TEMP_ARCHIVE_ON_ERRORS
private static final boolean DO_RAF_EXTENSION
private static final boolean DO_DEPENDS_CHECKING
private static final java.lang.Class[] EXPECTED_FAILURES
public final void handleArchiveStart(java.io.File parentDir, java.io.File archive, java.util.jar.Manifest manifest)
IPathEnumerator.IPathHandler
handleArchiveStart
in interface IPathEnumerator.IPathHandler
public final void handleArchiveEntry(java.util.jar.JarInputStream in, java.util.zip.ZipEntry entry)
handleArchiveEntry
in interface IPathEnumerator.IPathHandler
public final void handleArchiveEnd(java.io.File parentDir, java.io.File archive)
IPathEnumerator.IPathHandler
handleArchiveEnd
in interface IPathEnumerator.IPathHandler
public final void handleDirStart(java.io.File pathDir, java.io.File dir)
handleDirStart
in interface IPathEnumerator.IPathHandler
public final void handleFile(java.io.File pathDir, java.io.File file)
handleFile
in interface IPathEnumerator.IPathHandler
public final void handleDirEnd(java.io.File pathDir, java.io.File dir)
handleDirEnd
in interface IPathEnumerator.IPathHandler
protected void reset()
reset
in class InstrProcessor
protected void _run(IProperties toolProperties)
static void writeFile(byte[] data, java.io.File outFile, boolean mkdirs) throws java.io.IOException
java.io.IOException
static void writeZipEntry(byte[] data, java.util.zip.ZipOutputStream out, java.util.zip.ZipEntry entry, boolean isCopy) throws java.io.IOException
java.io.IOException
private void addJob(InstrProcessorST.Job job) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
private void drainJobQueue() throws java.io.IOException
java.io.IOException
private void readFile(java.io.File file) throws java.io.IOException
java.io.IOException
private void readZipEntry(java.util.zip.ZipInputStream in, java.util.zip.ZipEntry entry) throws java.io.IOException
java.io.IOException
private void ensureReadCapacity(int capacity)