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

com.pdfjet.Compressor Maven / Gradle / Ivy

/*    */ package com.pdfjet;
/*    */ 
/*    */ import java.io.ByteArrayOutputStream;
/*    */ import java.util.zip.Deflater;
/*    */ 
/*    */ class Compressor extends Deflater
/*    */ {
/* 38 */   ByteArrayOutputStream bos = null;
/*    */ 
/*    */   public Compressor(byte[] paramArrayOfByte)
/*    */   {
/* 43 */     setInput(paramArrayOfByte);
/* 44 */     finish();
/*    */ 
/* 46 */     this.bos = new ByteArrayOutputStream(paramArrayOfByte.length);
/*    */ 
/* 48 */     byte[] arrayOfByte = new byte[2048];
/* 49 */     while (!finished()) {
/* 50 */       int i = deflate(arrayOfByte);
/* 51 */       this.bos.write(arrayOfByte, 0, i);
/*    */     }
/*    */   }
/*    */ 
/*    */   public byte[] getCompressedData()
/*    */   {
/* 58 */     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.Compressor
 * JD-Core Version:    0.6.2
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy