public final class org.glassfish.grizzly.http.util.FastHttpDateFormat
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.http.util.FastHttpDateFormat
super_class: java.lang.Object
{
private static final java.lang.String ASCII_CHARSET_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int CACHE_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private static final java.util.TimeZone GMT_TIME_ZONE;
descriptor: Ljava/util/TimeZone;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter FORMATTER;
descriptor: Lorg/glassfish/grizzly/http/util/FastHttpDateFormat$SimpleDateFormatter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.ThreadLocal<org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter> FORMAT;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/glassfish/grizzly/http/util/FastHttpDateFormat$SimpleDateFormatter;>;
private static final java.lang.ThreadLocal FORMATS;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile long nextGeneration;
descriptor: J
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static final java.util.concurrent.atomic.AtomicBoolean isGeneratingNow;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.StringBuffer currentDateBuffer;
descriptor: Ljava/lang/StringBuffer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static byte[] currentDateBytes;
descriptor: [B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.lang.String cachedStringDate;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static volatile byte[] dateBytesForCachedStringDate;
descriptor: [B
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static final java.util.concurrent.ConcurrentMap<java.lang.Long, java.lang.String> formatCache;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Long;Ljava/lang/String;>;
private static final java.util.concurrent.ConcurrentMap<java.lang.String, java.lang.Long> parseCache;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Ljava/lang/Long;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.utils.Charsets.ASCII_CHARSET:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.ASCII_CHARSET_NAME:Ljava/lang/String;
1: ldc "GMT"
invokestatic java.util.TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.GMT_TIME_ZONE:Ljava/util/TimeZone;
2: new org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter
dup
invokespecial org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter.<init>:()V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMATTER:Lorg/glassfish/grizzly/http/util/FastHttpDateFormat$SimpleDateFormatter;
3: new org.glassfish.grizzly.http.util.FastHttpDateFormat$1
dup
invokespecial org.glassfish.grizzly.http.util.FastHttpDateFormat$1.<init>:()V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMAT:Ljava/lang/ThreadLocal;
4: new org.glassfish.grizzly.http.util.FastHttpDateFormat$2
dup
invokespecial org.glassfish.grizzly.http.util.FastHttpDateFormat$2.<init>:()V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMATS:Ljava/lang/ThreadLocal;
5: new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.isGeneratingNow:Ljava/util/concurrent/atomic/AtomicBoolean;
6: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.currentDateBuffer:Ljava/lang/StringBuffer;
7: new java.util.concurrent.ConcurrentHashMap
dup
sipush 1000
ldc 0.75
bipush 64
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(IFI)V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.formatCache:Ljava/util/concurrent/ConcurrentMap;
8: new java.util.concurrent.ConcurrentHashMap
dup
sipush 1000
ldc 0.75
bipush 64
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(IFI)V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.parseCache:Ljava/util/concurrent/ConcurrentMap;
return
LocalVariableTable:
Start End Slot Name Signature
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/glassfish/grizzly/http/util/FastHttpDateFormat;
public static java.lang.String getCurrentDate();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic org.glassfish.grizzly.http.util.FastHttpDateFormat.getCurrentDateBytes:()[B
astore 0
start local 0 1: aload 0
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.dateBytesForCachedStringDate:[B
if_acmpeq 6
2: new java.lang.String
dup
aload 0
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.ASCII_CHARSET_NAME:Ljava/lang/String;
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.cachedStringDate:Ljava/lang/String;
3: aload 0
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.dateBytesForCachedStringDate:[B
4: goto 6
StackMap locals: byte[]
StackMap stack: java.io.UnsupportedEncodingException
5: pop
6: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.cachedStringDate:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 currentDateBytesNow [B
Exception table:
from to target type
2 4 5 Class java.io.UnsupportedEncodingException
public static byte[] getCurrentDateBytes();
descriptor: ()[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=0
0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 0
start local 0 1: lload 0
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.nextGeneration:J
lsub
lstore 2
start local 2 2: lload 2
lconst_0
lcmp
ifle 14
lload 2
ldc 5000
lcmp
ifgt 3
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.isGeneratingNow:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifne 14
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.isGeneratingNow:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 14
3: StackMap locals: long long
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMAT:Ljava/lang/ThreadLocal;
dup
astore 4
monitorenter
4: lload 0
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.nextGeneration:J
lcmp
ifle 9
5: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.currentDateBuffer:Ljava/lang/StringBuffer;
iconst_0
invokevirtual java.lang.StringBuffer.setLength:(I)V
6: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMATTER:Lorg/glassfish/grizzly/http/util/FastHttpDateFormat$SimpleDateFormatter;
lload 0
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.currentDateBuffer:Ljava/lang/StringBuffer;
invokevirtual org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter.formatTo:(JLjava/lang/StringBuffer;)Ljava/lang/StringBuffer;
pop
7: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.currentDateBuffer:Ljava/lang/StringBuffer;
invokestatic org.glassfish.grizzly.http.util.HttpCodecUtils.toCheckedByteArray:(Ljava/lang/CharSequence;)[B
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.currentDateBytes:[B
8: lload 0
ldc 1000
ladd
putstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.nextGeneration:J
9: StackMap locals: java.lang.ThreadLocal
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.isGeneratingNow:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
10: aload 4
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 4
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.currentDateBytes:[B
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 15 0 now J
2 15 2 diff J
Exception table:
from to target type
4 11 12 any
12 13 12 any
public static java.lang.String formatDate(long, java.text.DateFormat);
descriptor: (JLjava/text/DateFormat;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 2 0: lload 0
ldc 1000
ldiv
ldc 1000
lmul
lstore 0
1: lload 0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 3
start local 3 2: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.formatCache:Ljava/util/concurrent/ConcurrentMap;
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 4
ifnull 5
4: aload 4
areturn
5: StackMap locals: java.lang.Long java.lang.String
StackMap stack:
aload 2
ifnull 8
6: aload 2
lload 0
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.text.DateFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 7: goto 9
end local 5 8: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMAT:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter
lload 0
invokevirtual org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter.format:(J)Ljava/lang/String;
astore 5
start local 5 9: StackMap locals: java.lang.String
StackMap stack:
aload 3
aload 5
invokestatic org.glassfish.grizzly.http.util.FastHttpDateFormat.updateFormatCache:(Ljava/lang/Long;Ljava/lang/String;)V
10: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 value J
0 11 2 threadLocalFormat Ljava/text/DateFormat;
2 11 3 longValue Ljava/lang/Long;
3 11 4 cachedDate Ljava/lang/String;
7 8 5 newDate Ljava/lang/String;
9 11 5 newDate Ljava/lang/String;
MethodParameters:
Name Flags
value
threadLocalFormat
public static long parseDate(java.lang.String, java.text.DateFormat[]);
descriptor: (Ljava/lang/String;[Ljava/text/DateFormat;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.parseCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual java.lang.Long.longValue:()J
lreturn
3: StackMap locals: java.lang.Long
StackMap stack:
aload 1
ifnull 6
4: aload 0
aload 1
invokestatic org.glassfish.grizzly.http.util.FastHttpDateFormat.internalParseDate:(Ljava/lang/String;[Ljava/text/DateFormat;)J
lstore 3
start local 3 5: goto 7
end local 3 6: StackMap locals:
StackMap stack:
aload 0
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.FORMATS:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.text.SimpleDateFormat[]
invokestatic org.glassfish.grizzly.http.util.FastHttpDateFormat.internalParseDate:(Ljava/lang/String;[Ljava/text/DateFormat;)J
lstore 3
start local 3 7: StackMap locals: long
StackMap stack:
lload 3
ldc -1
lcmp
ifeq 9
8: aload 0
lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic org.glassfish.grizzly.http.util.FastHttpDateFormat.updateParseCache:(Ljava/lang/String;Ljava/lang/Long;)V
9: StackMap locals:
StackMap stack:
lload 3
lreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 value Ljava/lang/String;
0 10 1 threadLocalformats [Ljava/text/DateFormat;
1 10 2 cachedDate Ljava/lang/Long;
5 6 3 date J
7 10 3 date J
MethodParameters:
Name Flags
value final
threadLocalformats
private static long internalParseDate(java.lang.String, java.text.DateFormat[]);
descriptor: (Ljava/lang/String;[Ljava/text/DateFormat;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 1
iload 2
aaload
aload 0
invokevirtual java.text.DateFormat.parse:(Ljava/lang/String;)Ljava/util/Date;
invokevirtual java.util.Date.getTime:()J
3: lreturn
4: StackMap locals:
StackMap stack: java.text.ParseException
pop
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 1
arraylength
if_icmplt 2
end local 2 7: ldc -1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 value Ljava/lang/String;
0 8 1 formats [Ljava/text/DateFormat;
1 7 2 i I
Exception table:
from to target type
2 3 4 Class java.text.ParseException
MethodParameters:
Name Flags
value
formats
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.glassfish.grizzly.http.util.FastHttpDateFormat.formatCache:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.size:()I
sipush 1000
if_icmple 4
3: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.formatCache:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
4: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.formatCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.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: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.parseCache:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.size:()I
sipush 1000
if_icmple 2
1: getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.parseCache:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
2: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.FastHttpDateFormat.parseCache:Ljava/util/concurrent/ConcurrentMap;
aload 0
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 key Ljava/lang/String;
0 4 1 value Ljava/lang/Long;
MethodParameters:
Name Flags
key
value
}
SourceFile: "FastHttpDateFormat.java"
NestMembers:
org.glassfish.grizzly.http.util.FastHttpDateFormat$1 org.glassfish.grizzly.http.util.FastHttpDateFormat$2 org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter
InnerClasses:
org.glassfish.grizzly.http.util.FastHttpDateFormat$1
org.glassfish.grizzly.http.util.FastHttpDateFormat$2
private final SimpleDateFormatter = org.glassfish.grizzly.http.util.FastHttpDateFormat$SimpleDateFormatter of org.glassfish.grizzly.http.util.FastHttpDateFormat