public final class ClassPathProcessorST extends java.lang.Object implements IPathEnumerator.IPathHandler, IAppErrorCodes
Modifier and Type | Field and Description |
---|---|
private static int |
BUF_SIZE |
private java.io.File |
m_archiveFile |
private ByteArrayOStream |
m_baos |
private java.util.Map |
m_cache |
private boolean |
m_canonical |
private int |
m_classCount |
private IInclExclFilter |
m_coverageFilter |
private InstrVisitor.InstrResult |
m_instrResult |
private Logger |
m_log |
private IMetaData |
m_mdata |
private java.io.File[] |
m_path |
private byte[] |
m_readbuf |
private int |
m_readpos |
private InstrVisitor |
m_visitor |
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 |
---|
ClassPathProcessorST(java.io.File[] path,
boolean canonical,
IMetaData mdata,
IInclExclFilter filter,
java.util.Map cache) |
Modifier and Type | Method and Description |
---|---|
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) |
void |
run() |
private final java.io.File[] m_path
private final boolean m_canonical
private final IMetaData m_mdata
private final IInclExclFilter m_coverageFilter
private final InstrVisitor m_visitor
private final InstrVisitor.InstrResult m_instrResult
private final java.util.Map m_cache
private final Logger m_log
private int m_classCount
private byte[] m_readbuf
private int m_readpos
private ByteArrayOStream m_baos
private java.io.File m_archiveFile
private static final int BUF_SIZE
ClassPathProcessorST(java.io.File[] path, boolean canonical, IMetaData mdata, IInclExclFilter filter, java.util.Map cache)
public void run()
public void handleArchiveStart(java.io.File parentDir, java.io.File archive, java.util.jar.Manifest manifest)
IPathEnumerator.IPathHandler
handleArchiveStart
in interface IPathEnumerator.IPathHandler
public void handleArchiveEntry(java.util.jar.JarInputStream in, java.util.zip.ZipEntry entry)
handleArchiveEntry
in interface IPathEnumerator.IPathHandler
public void handleArchiveEnd(java.io.File parentDir, java.io.File archive)
IPathEnumerator.IPathHandler
handleArchiveEnd
in interface IPathEnumerator.IPathHandler
public void handleDirStart(java.io.File pathDir, java.io.File dir)
handleDirStart
in interface IPathEnumerator.IPathHandler
public void handleFile(java.io.File pathDir, java.io.File file)
handleFile
in interface IPathEnumerator.IPathHandler
public void handleDirEnd(java.io.File pathDir, java.io.File dir)
handleDirEnd
in interface IPathEnumerator.IPathHandler
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)