public final class org.glassfish.jersey.message.internal.ReaderWriter
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.jersey.message.internal.ReaderWriter
super_class: java.lang.Object
{
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.nio.charset.Charset UTF8;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int BUFFER_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/jersey/message/internal/ReaderWriter;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic org.glassfish.jersey.message.internal.ReaderWriter.LOGGER:Ljava/util/logging/Logger;
1: ldc "UTF-8"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putstatic org.glassfish.jersey.message.internal.ReaderWriter.UTF8:Ljava/nio/charset/Charset;
2: invokestatic org.glassfish.jersey.message.internal.ReaderWriter.getBufferSize:()I
putstatic org.glassfish.jersey.message.internal.ReaderWriter.BUFFER_SIZE:I
return
LocalVariableTable:
Start End Slot Name Signature
private static int getBufferSize();
descriptor: ()I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=0
0: ldc "jersey.config.io.bufferSize"
invokestatic org.glassfish.jersey.internal.util.PropertiesHelper.getSystemProperty:(Ljava/lang/String;)Ljava/security/PrivilegedAction;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 1: aload 0
ifnull 15
2: aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 1
start local 1 3: iload 1
ifgt 5
4: new java.lang.NumberFormatException
dup
ldc "Value not positive."
invokespecial java.lang.NumberFormatException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String int
StackMap stack:
iload 1
6: ireturn
end local 1 7: StackMap locals: java.lang.String
StackMap stack: java.lang.NumberFormatException
astore 1
start local 1 8: getstatic org.glassfish.jersey.message.internal.ReaderWriter.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.CONFIG:Ljava/util/logging/Level;
9: new java.lang.StringBuilder
dup
ldc "Value of jersey.config.io.bufferSize property is not a valid positive integer ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc " Reverting to default ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
sipush 8192
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: aload 1
14: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 15: StackMap locals:
StackMap stack:
sipush 8192
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 16 0 value Ljava/lang/String;
3 7 1 i I
8 15 1 e Ljava/lang/NumberFormatException;
Exception table:
from to target type
2 6 7 Class java.lang.NumberFormatException
public static void writeTo(java.io.InputStream, java.io.OutputStream);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.jersey.message.internal.ReaderWriter.BUFFER_SIZE:I
newarray 8
astore 3
start local 3 1: goto 3
start local 2 2: StackMap locals: int byte[]
StackMap stack:
aload 1
aload 3
iconst_0
iload 2
invokevirtual java.io.OutputStream.write:([BII)V
end local 2 3: StackMap locals: java.io.InputStream java.io.OutputStream top byte[]
StackMap stack:
aload 0
aload 3
invokevirtual java.io.InputStream.read:([B)I
dup
istore 2
start local 2 4: iconst_m1
if_icmpne 2
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 in Ljava/io/InputStream;
0 6 1 out Ljava/io/OutputStream;
2 3 2 read I
4 6 2 read I
1 6 3 data [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
out
public static void writeTo(java.io.Reader, java.io.Writer);
descriptor: (Ljava/io/Reader;Ljava/io/Writer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.jersey.message.internal.ReaderWriter.BUFFER_SIZE:I
newarray 5
astore 3
start local 3 1: goto 3
start local 2 2: StackMap locals: int char[]
StackMap stack:
aload 1
aload 3
iconst_0
iload 2
invokevirtual java.io.Writer.write:([CII)V
end local 2 3: StackMap locals: java.io.Reader java.io.Writer top char[]
StackMap stack:
aload 0
aload 3
invokevirtual java.io.Reader.read:([C)I
dup
istore 2
start local 2 4: iconst_m1
if_icmpne 2
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 in Ljava/io/Reader;
0 6 1 out Ljava/io/Writer;
2 3 2 read I
4 6 2 read I
1 6 3 data [C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
out
public static java.nio.charset.Charset getCharset(javax.ws.rs.core.MediaType);
descriptor: (Ljavax/ws/rs/core/MediaType;)Ljava/nio/charset/Charset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual javax.ws.rs.core.MediaType.getParameters:()Ljava/util/Map;
ldc "charset"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
StackMap locals:
StackMap stack: java.lang.String
2: astore 1
start local 1 3: aload 1
ifnonnull 4
getstatic org.glassfish.jersey.message.internal.ReaderWriter.UTF8:Ljava/nio/charset/Charset;
goto 5
StackMap locals: java.lang.String
StackMap stack:
4: aload 1
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
StackMap locals:
StackMap stack: java.nio.charset.Charset
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 m Ljavax/ws/rs/core/MediaType;
3 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
m
public static java.lang.String readFromAsString(java.io.InputStream, javax.ws.rs.core.MediaType);
descriptor: (Ljava/io/InputStream;Ljavax/ws/rs/core/MediaType;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new java.io.InputStreamReader
dup
aload 0
aload 1
invokestatic org.glassfish.jersey.message.internal.ReaderWriter.getCharset:(Ljavax/ws/rs/core/MediaType;)Ljava/nio/charset/Charset;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
invokestatic org.glassfish.jersey.message.internal.ReaderWriter.readFromAsString:(Ljava/io/Reader;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 in Ljava/io/InputStream;
0 1 1 type Ljavax/ws/rs/core/MediaType;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
type
public static java.lang.String readFromAsString(java.io.Reader);
descriptor: (Ljava/io/Reader;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: getstatic org.glassfish.jersey.message.internal.ReaderWriter.BUFFER_SIZE:I
newarray 5
astore 2
start local 2 2: goto 4
start local 3 3: StackMap locals: java.lang.StringBuilder char[] int
StackMap stack:
aload 1
aload 2
iconst_0
iload 3
invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.io.Reader.read:([C)I
dup
istore 3
start local 3 5: iconst_m1
if_icmpne 3
6: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 reader Ljava/io/Reader;
1 7 1 sb Ljava/lang/StringBuilder;
2 7 2 c [C
3 4 3 l I
5 7 3 l I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
reader
public static void writeToAsString(java.lang.String, java.io.OutputStream, javax.ws.rs.core.MediaType);
descriptor: (Ljava/lang/String;Ljava/io/OutputStream;Ljavax/ws/rs/core/MediaType;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.io.OutputStreamWriter
dup
aload 1
aload 2
invokestatic org.glassfish.jersey.message.internal.ReaderWriter.getCharset:(Ljavax/ws/rs/core/MediaType;)Ljava/nio/charset/Charset;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
astore 3
start local 3 1: aload 3
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.io.Writer.write:(Ljava/lang/String;II)V
2: aload 3
invokevirtual java.io.Writer.flush:()V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
0 4 1 out Ljava/io/OutputStream;
0 4 2 type Ljavax/ws/rs/core/MediaType;
1 4 3 osw Ljava/io/Writer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
out
type
public static void safelyClose(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface java.io.Closeable.close:()V
1: goto 7
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: getstatic org.glassfish.jersey.message.internal.ReaderWriter.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokestatic org.glassfish.jersey.internal.LocalizationMessages.MESSAGE_CONTENT_INPUT_STREAM_CLOSE_FAILED:()Ljava/lang/String;
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 4: goto 7
5: StackMap locals:
StackMap stack: javax.ws.rs.ProcessingException
astore 1
start local 1 6: getstatic org.glassfish.jersey.message.internal.ReaderWriter.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokestatic org.glassfish.jersey.internal.LocalizationMessages.MESSAGE_CONTENT_INPUT_STREAM_CLOSE_FAILED:()Ljava/lang/String;
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 closeable Ljava/io/Closeable;
3 4 1 ioe Ljava/io/IOException;
6 7 1 pe Ljavax/ws/rs/ProcessingException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
0 1 5 Class javax.ws.rs.ProcessingException
MethodParameters:
Name Flags
closeable
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/jersey/message/internal/ReaderWriter;
}
SourceFile: "ReaderWriter.java"