Changeset 8ef593f


Ignore:
Timestamp:
Feb 13, 2016 3:35:57 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
23615579
Parents:
e65bd26
Message:

Data: New Hash.toBase32() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/Hash.java

    re65bd26 r8ef593f  
    107107
    108108    /**
     109     *  For convenience.
     110     *  @return "{52 chars}.b32.i2p" or null if data not set.
     111     *  @since 0.9.25
     112     */
     113    public String toBase32() {
     114        if (_data == null)
     115            return null;
     116        return Base32.encode(_data) + ".b32.i2p";
     117    }
     118
     119    /**
    109120     *  @since 0.9.17
    110121     */
Note: See TracChangeset for help on using the changeset viewer.