Changeset 60d9c16


Ignore:
Timestamp:
Oct 29, 2014 2:31:14 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a1fdd41b
Parents:
ec1380d
Message:

SU3File: Show content and file types in showversion

File:
1 edited

Legend:

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

    rec1380d r60d9c16  
    684684            if (file._sigType != null)
    685685                System.out.println("SigType:  " + file._sigType);
     686            if (file._contentType != null)
     687                System.out.println("Content:  " + file._contentType);
     688            String ftype;
     689            if (file._fileType == TYPE_ZIP)
     690                ftype = "ZIP";
     691            else if (file._fileType == TYPE_XML)
     692                ftype = "XML";
     693            else if (file._fileType == TYPE_HTML)
     694                ftype = "HTML";
     695            else if (file._fileType == TYPE_XML_GZ)
     696                ftype = "XML_GZ";
     697            else
     698                ftype = Integer.toString(file._fileType);
     699                System.out.println("FileType: " + ftype);
    686700            return !versionString.equals("");
    687701        } catch (IOException ioe) {
Note: See TracChangeset for help on using the changeset viewer.