如何从十六进制中获取实数十六进制数字作为字符串

时间:2017-12-08 10:23:31

标签: php

如何从十六进制字符串中获取正确的十六进制数?

例如:

android:windowSoftInputMode="adjustPan"

1 个答案:

答案 0 :(得分:2)

感谢@Ryan。

这就是技巧:

   Subject callerSubject = WSSubject.getCallerSubject();
   Set<WSCredential> credentials = callerSubject.getPublicCredentials(WSCredential.class);

   // should contain only one credential
   int credSize = credentials.size();
   if( credSize != 1)
        throw new RuntimeException("Invalid credential number: "+credSize);
    WSCredential cred = credentials.iterator().next();
    System.out.println("getExpiration: " + cred.getExpiration()+" date: " + new Date(cred.getExpiration()) + "<BR>");