Class BaseNCodec

java.lang.Object
org.seppiko.commons.utils.codec.BaseNCodec
Direct Known Subclasses:
Base16, Base32

public abstract class BaseNCodec extends Object
Abstract superclass for Base-N encoders and decoders.
Author:
Leonard Woo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final long
    Mask used to extract 4 bits, used when decoding character.
    protected static final long
    Mask used to extract 5 bits, used when encoding bytes
    protected static final long
    Mask used to extract 8 bits, used in decoding bytes
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract byte[]
     
    abstract String
    encode(byte[] data)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait