Package com.pnfsoftware.jeb.util.encoding
package com.pnfsoftware.jeb.util.encoding
Utilities for encoding, decoding, identifying, and validating data, including numeric
conversions, LEB128 readers and writers, MIME type detection, hash calculators, and archive/XML
helpers.
-
ClassDescriptionThis exception may be raised when an encoding or decoding error is detected.Encodes and decodes to and from Base64 notation.A
Base64.InputStreamwill read data from anotherjava.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.ABase64.OutputStreamwill write data to anotherjava.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.Utility methods for safe conversions of strings or boxed representations of numbers, to numbers.Hash calculation routines.Memory and CPU efficient way to compute message digests.Read and write LEB128-encoded integers.Decoded value along with the encoded length in bytes.JSON utility methods backed by Jackson.Decoding methods for LEB128-encoded integers from byte arrays.Decoded value along with the encoded length in bytes.Read and write LEB128-encoded longs.Decoded value along with the encoded length in bytes.A collection of common MIME types as well as simple utility methods to determine MIME type from content bytes.