コード例 #1
0
 /*     */ private void putIntegerContents(int paramInt) throws IOException /*     */ {
   /* 189 */ byte[] arrayOfByte = new byte[4];
   /* 190 */ int i = 0;
   /*     */
   /* 194 */ arrayOfByte[3] = ((byte) (paramInt & 0xFF));
   /* 195 */ arrayOfByte[2] = ((byte) ((paramInt & 0xFF00) >>> 8));
   /* 196 */ arrayOfByte[1] = ((byte) ((paramInt & 0xFF0000) >>> 16));
   /* 197 */ arrayOfByte[0] = ((byte) ((paramInt & 0xFF000000) >>> 24));
   /*     */
   /* 202 */ if (arrayOfByte[0] == -1)
   /*     */ {
     /* 206 */ for (j = 0;
         (j < 3) && /* 207 */ (arrayOfByte[j] == -1) && ((arrayOfByte[(j + 1)] & 0x80) == 128);
         j++)
     /*     */ {
       /* 209 */ i++;
       /*     */ }
     /*     */
     /*     */ }
   /* 213 */ else if (arrayOfByte[0] == 0)
   /*     */ {
     /* 217 */ for (j = 0;
         (j < 3) && /* 218 */ (arrayOfByte[j] == 0) && ((arrayOfByte[(j + 1)] & 0x80) == 0);
         j++)
     /*     */ {
       /* 220 */ i++;
       /*     */ }
     /*     */
     /*     */ }
   /*     */
   /* 226 */ putLength(4 - i);
   /* 227 */ for (int j = i; j < 4; j++) /* 228 */ write(arrayOfByte[j]);
   /*     */ }
コード例 #2
0
 /*     */ public void putBitString(byte[] paramArrayOfByte) /*     */ throws IOException
       /*     */ {
   /* 238 */ write(3);
   /* 239 */ putLength(paramArrayOfByte.length + 1);
   /* 240 */ write(0);
   /* 241 */ write(paramArrayOfByte);
   /*     */ }
コード例 #3
0
 /*     */ public void putInteger(BigInteger paramBigInteger) /*     */ throws IOException
       /*     */ {
   /* 164 */ write(2);
   /* 165 */ byte[] arrayOfByte = paramBigInteger.toByteArray();
   /* 166 */ putLength(arrayOfByte.length);
   /* 167 */ write(arrayOfByte, 0, arrayOfByte.length);
   /*     */ }
コード例 #4
0
 /*     */ public void write(byte paramByte, DerOutputStream paramDerOutputStream)
     /*     */ throws IOException
       /*     */ {
   /*  93 */ write(paramByte);
   /*  94 */ putLength(paramDerOutputStream.count);
   /*  95 */ write(paramDerOutputStream.buf, 0, paramDerOutputStream.count);
   /*     */ }
コード例 #5
0
 /*     */ private void writeString(String paramString1, byte paramByte, String paramString2)
     /*     */ throws IOException
       /*     */ {
   /* 454 */ byte[] arrayOfByte = paramString1.getBytes(paramString2);
   /* 455 */ write(paramByte);
   /* 456 */ putLength(arrayOfByte.length);
   /* 457 */ write(arrayOfByte);
   /*     */ }
コード例 #6
0
 /*     */ public void putUnalignedBitString(BitArray paramBitArray) /*     */ throws IOException
       /*     */ {
   /* 251 */ byte[] arrayOfByte = paramBitArray.toByteArray();
   /*     */
   /* 253 */ write(3);
   /* 254 */ putLength(arrayOfByte.length + 1);
   /* 255 */ write(arrayOfByte.length * 8 - paramBitArray.length());
   /* 256 */ write(arrayOfByte);
   /*     */ }
コード例 #7
0
 /*     */ private void putTime(Date paramDate, byte paramByte) /*     */ throws IOException
       /*     */ {
   /* 493 */ TimeZone localTimeZone = TimeZone.getTimeZone("GMT");
   /* 494 */ String str = null;
   /*     */
   /* 496 */ if (paramByte == 23) {
     /* 497 */ str = "yyMMddHHmmss'Z'";
     /*     */ } else {
     /* 499 */ paramByte = 24;
     /* 500 */ str = "yyyyMMddHHmmss'Z'";
     /*     */ }
   /*     */
   /* 503 */ SimpleDateFormat localSimpleDateFormat = new SimpleDateFormat(str, Locale.US);
   /* 504 */ localSimpleDateFormat.setTimeZone(localTimeZone);
   /* 505 */ byte[] arrayOfByte = localSimpleDateFormat.format(paramDate).getBytes("ISO-8859-1");
   /*     */
   /* 511 */ write(paramByte);
   /* 512 */ putLength(arrayOfByte.length);
   /* 513 */ write(arrayOfByte);
   /*     */ }
コード例 #8
0
 /*     */ public void putBoolean(boolean paramBoolean) /*     */ throws IOException /*     */ {
   /* 140 */ write(1);
   /* 141 */ putLength(1);
   /* 142 */ if (paramBoolean) /* 143 */ write(255);
   /*     */ else /* 145 */ write(0);
   /*     */ }
コード例 #9
0
 /*     */ public void write(byte paramByte, byte[] paramArrayOfByte) /*     */ throws IOException
       /*     */ {
   /*  78 */ write(paramByte);
   /*  79 */ putLength(paramArrayOfByte.length);
   /*  80 */ write(paramArrayOfByte, 0, paramArrayOfByte.length);
   /*     */ }
コード例 #10
0
 /*     */ public void putNull() /*     */ throws IOException /*     */ {
   /* 283 */ write(5);
   /* 284 */ putLength(0);
   /*     */ }