net.sourceforge.cobertura.util
Class Source

java.lang.Object
  extended by net.sourceforge.cobertura.util.Source

public class Source
extends java.lang.Object


Field Summary
private  java.io.InputStream is
           
private static org.apache.log4j.Logger LOGGER
           
private  java.lang.Object streamOrigin
           
 
Constructor Summary
Source(java.io.InputStream is, java.lang.Object streamOrigin)
           
 
Method Summary
 void close()
          Close the source input stream and the archive if it came from one.
 java.io.InputStream getInputStream()
           
 java.lang.String getOriginDesc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

is

private java.io.InputStream is

streamOrigin

private java.lang.Object streamOrigin

LOGGER

private static org.apache.log4j.Logger LOGGER
Constructor Detail

Source

public Source(java.io.InputStream is,
              java.lang.Object streamOrigin)
Method Detail

getInputStream

public java.io.InputStream getInputStream()

close

public void close()
Close the source input stream and the archive if it came from one. This will not throw anything. Any throwable is caught and a warning is logged.


getOriginDesc

public java.lang.String getOriginDesc()