|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cobertura.instrument.Archive
This class represents an archive within an archive.
Field Summary | |
private byte[] |
bytes
|
private CoberturaFile |
file
|
private boolean |
modified
|
Constructor Summary | |
(package private) |
Archive(CoberturaFile file,
byte[] bytes)
Create an object that holds a buffer to an archive that is within a parent archive. |
Method Summary | |
(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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private byte[] bytes
private boolean modified
private CoberturaFile file
Constructor Detail |
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.Method Detail |
java.io.InputStream getInputStream()
void setModifiedBytes(byte[] bytes)
bytes
- The new contents of the archive (instrumented).boolean isModified()
byte[] getBytes()
CoberturaFile getCoberturaFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |