class Archive extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
bytes |
private CoberturaFile |
file |
private boolean |
modified |
Constructor and Description |
---|
Archive(CoberturaFile file,
byte[] bytes)
Create an object that holds a buffer to an archive that is within a parent archive.
|
Modifier and Type | Method and Description |
---|---|
(package private) byte[] |
getBytes()
Return the contents of this archive.
|
(package private) CoberturaFile |
getCoberturaFile()
Returns the parent archive that contains this archive.
|
(package private) java.io.InputStream |
getInputStream()
Return an input stream for the contents of this archive (the child).
|
(package private) boolean |
isModified()
Return true if this archive has been modified (instrumented).
|
(package private) void |
setModifiedBytes(byte[] bytes)
Set this archive's bytes after they have been modified via instrumentation.
|
private byte[] bytes
private boolean modified
private CoberturaFile file
Archive(CoberturaFile file, byte[] bytes)
file
- The parent archive on the hard drive that holds the child archive.bytes
- The contents of the child archive.java.io.InputStream getInputStream()
void setModifiedBytes(byte[] bytes)
bytes
- The new contents of the archive (instrumented).boolean isModified()
byte[] getBytes()
CoberturaFile getCoberturaFile()