public final class org.apache.tomcat.util.http.FastHttpDateFormat
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.tomcat.util.http.FastHttpDateFormat
super_class: java.lang.Object
{
private static final int CACHE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String DATE_RFC5322;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "EEE, dd MMM yyyy HH:mm:ss z"
private static final java.lang.String DATE_OBSOLETE_RFC850;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "EEEEEE, dd-MMM-yy HH:mm:ss zzz"
private static final java.lang.String DATE_OBSOLETE_ASCTIME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "EEE MMMM d HH:mm:ss yyyy"
private static final org.apache.tomcat.util.http.ConcurrentDateFormat FORMAT_RFC5322;
descriptor: Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.http.ConcurrentDateFormat FORMAT_OBSOLETE_RFC850;
descriptor: Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.http.ConcurrentDateFormat FORMAT_OBSOLETE_ASCTIME;
descriptor: Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.http.ConcurrentDateFormat[] httpParseFormats;
descriptor: [Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile long currentDateGenerated;
descriptor: J
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static java.lang.String currentDate;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.util.Map<java.lang.Long, java.lang.String> formatCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Long;Ljava/lang/String;>;
private static final java.util.Map<java.lang.String, java.lang.Long> parseCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Long;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: ldc "org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE"
ldc "1000"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
1: putstatic org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE:I
2: ldc "GMT"
invokestatic java.util.TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;
astore 0
start local 0 3: new org.apache.tomcat.util.http.ConcurrentDateFormat
dup
ldc "EEE, dd MMM yyyy HH:mm:ss z"
getstatic java.util.Locale.US:Ljava/util/Locale;
aload 0
invokespecial org.apache.tomcat.util.http.ConcurrentDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;Ljava/util/TimeZone;)V
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_RFC5322:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
4: new org.apache.tomcat.util.http.ConcurrentDateFormat
dup
ldc "EEEEEE, dd-MMM-yy HH:mm:ss zzz"
getstatic java.util.Locale.US:Ljava/util/Locale;
aload 0
invokespecial org.apache.tomcat.util.http.ConcurrentDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;Ljava/util/TimeZone;)V
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_OBSOLETE_RFC850:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
5: new org.apache.tomcat.util.http.ConcurrentDateFormat
dup
ldc "EEE MMMM d HH:mm:ss yyyy"
getstatic java.util.Locale.US:Ljava/util/Locale;
aload 0
invokespecial org.apache.tomcat.util.http.ConcurrentDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;Ljava/util/TimeZone;)V
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_OBSOLETE_ASCTIME:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
6: iconst_3
anewarray org.apache.tomcat.util.http.ConcurrentDateFormat
dup
iconst_0
7: getstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_RFC5322:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
aastore
dup
iconst_1
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_OBSOLETE_RFC850:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
aastore
dup
iconst_2
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_OBSOLETE_ASCTIME:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
aastore
8: putstatic org.apache.tomcat.util.http.FastHttpDateFormat.httpParseFormats:[Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
end local 0 9: lconst_0
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.currentDateGenerated:J
10: aconst_null
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.currentDate:Ljava/lang/String;
11: new java.util.concurrent.ConcurrentHashMap
dup
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE:I
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.formatCache:Ljava/util/Map;
12: new java.util.concurrent.ConcurrentHashMap
dup
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE:I
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.parseCache:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
3 9 0 tz Ljava/util/TimeZone;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/FastHttpDateFormat;
public static final java.lang.String getCurrentDate();
descriptor: ()Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=0
0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 0
start local 0 1: lload 0
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.currentDateGenerated:J
lsub
ldc 1000
lcmp
ifle 4
2: getstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_RFC5322:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
new java.util.Date
dup
lload 0
invokespecial java.util.Date.<init>:(J)V
invokevirtual org.apache.tomcat.util.http.ConcurrentDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.currentDate:Ljava/lang/String;
3: lload 0
putstatic org.apache.tomcat.util.http.FastHttpDateFormat.currentDateGenerated:J
4: StackMap locals: long
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.currentDate:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 now J
public static final java.lang.String formatDate(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=1
start local 0 0: lload 0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 2
start local 2 1: getstatic org.apache.tomcat.util.http.FastHttpDateFormat.formatCache:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 3
ifnull 4
3: aload 3
areturn
4: StackMap locals: java.lang.Long java.lang.String
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.FORMAT_RFC5322:Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
new java.util.Date
dup
lload 0
invokespecial java.util.Date.<init>:(J)V
invokevirtual org.apache.tomcat.util.http.ConcurrentDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
astore 4
start local 4 5: aload 2
aload 4
invokestatic org.apache.tomcat.util.http.FastHttpDateFormat.updateFormatCache:(Ljava/lang/Long;Ljava/lang/String;)V
6: aload 4
areturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 value J
1 7 2 longValue Ljava/lang/Long;
2 7 3 cachedDate Ljava/lang/String;
5 7 4 newDate Ljava/lang/String;
MethodParameters:
Name Flags
value
public static final long parseDate(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=4, locals=5, args_size=1
start local 0 0: getstatic org.apache.tomcat.util.http.FastHttpDateFormat.parseCache:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokevirtual java.lang.Long.longValue:()J
lreturn
3: StackMap locals: java.lang.Long
StackMap stack:
ldc -1
lstore 2
start local 2 4: iconst_0
istore 4
start local 4 5: goto 11
6: StackMap locals: long int
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.httpParseFormats:[Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
iload 4
aaload
aload 0
invokevirtual org.apache.tomcat.util.http.ConcurrentDateFormat.parse:(Ljava/lang/String;)Ljava/util/Date;
invokevirtual java.util.Date.getTime:()J
lstore 2
7: aload 0
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic org.apache.tomcat.util.http.FastHttpDateFormat.updateParseCache:(Ljava/lang/String;Ljava/lang/Long;)V
8: goto 10
StackMap locals:
StackMap stack: java.text.ParseException
9: pop
10: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: lload 2
ldc -1
lcmp
ifne 12
iload 4
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.httpParseFormats:[Lorg/apache/tomcat/util/http/ConcurrentDateFormat;
arraylength
if_icmplt 6
end local 4 12: StackMap locals:
StackMap stack:
lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 value Ljava/lang/String;
1 13 1 cachedDate Ljava/lang/Long;
4 13 2 date J
5 12 4 i I
Exception table:
from to target type
6 8 9 Class java.text.ParseException
MethodParameters:
Name Flags
value
private static void updateFormatCache(java.lang.Long, java.lang.String);
descriptor: (Ljava/lang/Long;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.formatCache:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE:I
if_icmple 4
3: getstatic org.apache.tomcat.util.http.FastHttpDateFormat.formatCache:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
4: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.formatCache:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 key Ljava/lang/Long;
0 6 1 value Ljava/lang/String;
MethodParameters:
Name Flags
key
value
private static void updateParseCache(java.lang.String, java.lang.Long);
descriptor: (Ljava/lang/String;Ljava/lang/Long;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.parseCache:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE:I
if_icmple 4
3: getstatic org.apache.tomcat.util.http.FastHttpDateFormat.parseCache:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
4: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.http.FastHttpDateFormat.parseCache:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 key Ljava/lang/String;
0 6 1 value Ljava/lang/Long;
MethodParameters:
Name Flags
key
value
}
SourceFile: "FastHttpDateFormat.java"