1 7 package org.ejtools.archive.io; 8 9 import java.io.ByteArrayInputStream ; 10 import java.util.zip.ZipInputStream ; 11 12 13 19 public class ByteReader extends StreamReader 20 { 21 26 public ByteReader(byte[] content) 27 { 28 try 29 { 30 ByteArrayInputStream bais = new ByteArrayInputStream (content); 31 this.pushZipInputStream(new ZipInputStream (bais)); 32 } 33 catch (Exception ioe) 34 { 35 ioe.printStackTrace(); 36 } 37 } 38 } 39 | Popular Tags |