Package org.bouncycastle.util.encoders.test

Source Code of org.bouncycastle.util.encoders.test.HexTest

package org.bouncycastle.util.encoders.test;

import org.bouncycastle.util.encoders.HexEncoder;

public class HexTest extends AbstractCoderTest
{
    public HexTest(
        String    name)
    {
        super(name);
    }
   
    protected void setUp()
    {
        super.setUp();
        enc = new HexEncoder();
    }

    protected char paddingChar()
    {
        return 0;
    }

    protected boolean isEncodedChar(char c)
    {
        if ('A' <= c && c <= 'F')
        {
            return true;
        }
        if ('a' <= c && c <= 'f')
        {
            return true;
        }
        if ('0' <= c && c <= '9')
        {
            return true;
        }
        return false;
    }

}
TOP

Related Classes of org.bouncycastle.util.encoders.test.HexTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.