Clover coverage report - Common - 1.0.0
Coverage timestamp: sam. déc. 27 2003 15:13:46 CET
file stats: LOC: 39   Methods: 1
NCLOC: 18   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ByteReader.java - 0% 0% 0%
coverage
 1   
 /*
 2   
  * EJTools, the Enterprise Java Tools
 3   
  *
 4   
  * Distributable under LGPL license.
 5   
  * See terms of license at www.gnu.org.
 6   
  */
 7   
 package org.ejtools.archive.io;
 8   
 
 9   
 import java.io.ByteArrayInputStream;
 10   
 import java.util.zip.ZipInputStream;
 11   
 
 12   
 
 13   
 /**
 14   
  * Reader implementation based on a byte array. The stream is build onto the byte array.
 15   
  *
 16   
  * @author    Laurent Etiemble
 17   
  * @version   $Revision: 1.2 $
 18   
  */
 19   
 public class ByteReader extends StreamReader
 20   
 {
 21   
    /**
 22   
     * Builds a ByteReader on a byte array
 23   
     *
 24   
     * @param content  Description of the Parameter
 25   
     */
 26  0
    public ByteReader(byte[] content)
 27   
    {
 28  0
       try
 29   
       {
 30  0
          ByteArrayInputStream bais = new ByteArrayInputStream(content);
 31  0
          this.pushZipInputStream(new ZipInputStream(bais));
 32   
       }
 33   
       catch (Exception ioe)
 34   
       {
 35  0
          ioe.printStackTrace();
 36   
       }
 37   
    }
 38   
 }
 39