net.sourceforge.cobertura.instrument
Class Archive
java.lang.Objectnet.sourceforge.cobertura.instrument.Archive
This class represents an archive within an archive.
Archive(CoberturaFile file, byte[] bytes)- Create an object that holds a buffer to an archive that is within a parent archive.
|
(package private) byte[] | getBytes()- Return the contents of this archive.
|
(package private) CoberturaFile | getCoberturaFile()- Returns the parent archive that contains this archive.
|
(package private) 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.
|
bytes
private byte[] bytes
file
private CoberturaFile file
Archive
(package private) Archive(CoberturaFile file,
byte[] bytes) Create an object that holds a buffer to an archive that is within a parent archive.
file - The parent archive on the hard drive that holds the child archive.bytes - The contents of the child archive.
getBytes
(package private) byte[] getBytes()
Return the contents of this archive.
- A byte array with the contents of this archive.
getCoberturaFile
(package private) CoberturaFile getCoberturaFile()
Returns the parent archive that contains this archive.
- A CoberturaFile representing the parent archive.
getInputStream
(package private) InputStream getInputStream()
Return an input stream for the contents of this archive (the child).
- An InputStream for the contents.
isModified
(package private) boolean isModified()
Return true if this archive has been modified (instrumented).
setModifiedBytes
(package private) void setModifiedBytes(byte[] bytes)
Set this archive's bytes after they have been modified via instrumentation.
bytes - The new contents of the archive (instrumented).