All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pdfjet.Decompressor Maven / Gradle / Ivy

/*    */ package com.pdfjet;
/*    */ 
/*    */ import java.io.ByteArrayOutputStream;
/*    */ import java.util.zip.Inflater;
/*    */ 
/*    */ class Decompressor extends Inflater
/*    */ {
/* 38 */   private ByteArrayOutputStream bos = null;
/*    */ 
/*    */   public Decompressor(byte[] paramArrayOfByte) throws Exception
/*    */   {
/* 42 */     super.setInput(paramArrayOfByte);
/* 43 */     this.bos = new ByteArrayOutputStream(paramArrayOfByte.length);
/*    */ 
/* 45 */     byte[] arrayOfByte = new byte[2048];
/* 46 */     while (!super.finished()) {
/* 47 */       int i = super.inflate(arrayOfByte);
/* 48 */       this.bos.write(arrayOfByte, 0, i);
/*    */     }
/*    */   }
/*    */ 
/*    */   public byte[] getDecompressedData()
/*    */   {
/* 54 */     return this.bos.toByteArray();
/*    */   }
/*    */ }

/* Location:           E:\EGGWIFI\Customer\trunk\src\Workspace\Customer\Customer Maven Webapp\src\main\webapp\WEB-INF\lib\PDFjet.jar
 * Qualified Name:     com.pdfjet.Decompressor
 * JD-Core Version:    0.6.2
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy