net.sourceforge.cobertura.instrument
class Archive extends Object
Field Summary | |
---|---|
byte[] | bytes |
CoberturaFile | file |
boolean | modified |
Constructor Summary | |
---|---|
Archive(CoberturaFile file, byte[] bytes)
Create an object that holds a buffer to an archive that is within a parent archive.
|
Method Summary | |
---|---|
byte[] | getBytes()
Return the contents of this archive.
|
CoberturaFile | getCoberturaFile()
Returns the parent archive that contains this archive.
|
InputStream | getInputStream()
Return an input stream for the contents of this archive (the child).
|
boolean | isModified()
Return true if this archive has been modified (instrumented).
|
void | setModifiedBytes(byte[] bytes)
Set this archive's bytes after they have been modified via instrumentation.
|
Parameters: file The parent archive on the hard drive that holds the child archive. bytes The contents of the child archive.
Returns: A byte array with the contents of this archive.
Returns: A CoberturaFile representing the parent archive.
Returns: An InputStream for the contents.
Returns: true if modified.
Parameters: bytes The new contents of the archive (instrumented).