Changeset f6778c5 for core


Ignore:
Timestamp:
Nov 25, 2016 2:53:42 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5a87c23
Parents:
ffb3a758
Message:

SU3File: Add types for blocklist (proposal #130)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/SU3File.java

    rffb3a758 rf6778c5  
    8080    /** @since 0.9.17 */
    8181    public static final int TYPE_XML_GZ = 3;
     82    /** @since 0.9.28 */
     83    public static final int TYPE_TXT_GZ = 4;
    8284
    8385    public static final int CONTENT_UNKNOWN = 0;
     
    8789    /** @since 0.9.15 */
    8890    public static final int CONTENT_NEWS = 4;
     91    /** @since 0.9.28 */
     92    public static final int CONTENT_BLOCKLIST = 5;
    8993
    9094    /**
     
    98102        PLUGIN(CONTENT_PLUGIN, "plugin"),
    99103        RESEED(CONTENT_RESEED, "reseed"),
    100         NEWS(CONTENT_NEWS, "news")
     104        NEWS(CONTENT_NEWS, "news"),
     105        BLOCKLIST(CONTENT_BLOCKLIST, "blocklist")
    101106        ;
    102107
     
    677682            buf.append('\n');
    678683        }
    679         buf.append("Available file types (-f):\n");
    680         buf.append("      ZIP\t(code: 0) DEFAULT\n");
    681         buf.append("      XML\t(code: 1)\n");
    682         buf.append("      HTML\t(code: 2)\n");
    683         buf.append("      XML_GZ\t(code: 3)\n");
    684         buf.append("      (user defined)\t(code: 4-255)\n");
     684        buf.append("Available file types (-f):\n" +
     685                   "      ZIP\t(code: 0) DEFAULT\n" +
     686                   "      XML\t(code: 1)\n" +
     687                   "      HTML\t(code: 2)\n" +
     688                   "      XML_GZ\t(code: 3)\n" +
     689                   "      TXT_GZ\t(code: 4)\n" +
     690                   "      (user defined)\t(code: 5-255)\n");
    685691        return buf.toString();
    686692    }
Note: See TracChangeset for help on using the changeset viewer.