iText io.jar Source Code

io.jar is a component in iText Java library to provide input/output functionalities. iText Java library allows you to generate and manage PDF documents.

The Source Code files are provided together with the JAR file in the binary packge like iText7-Core-7.1.4.zip. You can download it at iText 7 Core Download site.

You can compile it to generate your JAR file, using io.pom as the build configuration file.

The source code of io-7.1.4.jar is provided below:

✍: FYIcenter.com

com/itextpdf/io/codec/brotli/dec/IntReader.java

/* Copyright 2017 Google Inc. All Rights Reserved.

   Distributed under MIT license.
   See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/

package com.itextpdf.io.codec.brotli.dec;

/**
 * Byte-to-int conversion magic.
 */
final class IntReader {

  private byte[] byteBuffer;
  private int[] intBuffer;

  static void init(IntReader ir, byte[] byteBuffer, int[] intBuffer) {
    ir.byteBuffer = byteBuffer;
    ir.intBuffer = intBuffer;
  }

  /**
   * Translates bytes to ints.
   *
   * NB: intLen == 4 * byteSize!
   * NB: intLen should be less or equal to intBuffer length.
   */
  static void convert(IntReader ir, int intLen) {
    for (int i = 0; i < intLen; ++i) {
      ir.intBuffer[i] = ((ir.byteBuffer[i * 4] & 0xFF))
          | ((ir.byteBuffer[(i * 4) + 1] & 0xFF) << 8)
          | ((ir.byteBuffer[(i * 4) + 2] & 0xFF) << 16)
          | ((ir.byteBuffer[(i * 4) + 3] & 0xFF) << 24);
    }
  }
}

com/itextpdf/io/codec/brotli/dec/IntReader.java

 

Or download all of them as a single archive file:

File name: io-7.1.4-sources.jar
File size: 608762 bytes
Release date: 2018-10-09
Download 

 

iText layout.jar Source Code

iText kernel.jar Source Code

Download and Install iText Java Library

⇑⇑ iText for PDF Generation

2018-04-09, 91117👍, 5💬