public final class com.ctc.wstx.util.URLUtil
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: com.ctc.wstx.util.URLUtil
  super_class: java.lang.Object
{
  private static final java.util.regex.Pattern URI_WINDOWS_FILE_PATTERN;
    descriptor: Ljava/util/regex/Pattern;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 13
            ldc "^file:///\\p{Alpha}|.*$"
            invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
            putstatic com.ctc.wstx.util.URLUtil.URI_WINDOWS_FILE_PATTERN:Ljava/util/regex/Pattern;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.ctc.wstx.util.URLUtil this
         0: .line 15
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // com.ctc.wstx.util.URLUtil this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/ctc/wstx/util/URLUtil;

  public static java.net.URL urlFromSystemId(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/net/URL;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=4, args_size=1
        start local 0 // java.lang.String sysId
         0: .line 26
            aload 0 /* sysId */
            invokestatic com.ctc.wstx.util.URLUtil.cleanSystemId:(Ljava/lang/String;)Ljava/lang/String;
            astore 0 /* sysId */
         1: .line 33
            aload 0 /* sysId */
            bipush 58
            iconst_0
            invokevirtual java.lang.String.indexOf:(II)I
            istore 1 /* ix */
        start local 1 // int ix
         2: .line 37
            iload 1 /* ix */
            iconst_3
            if_icmplt 5
            iload 1 /* ix */
            bipush 8
            if_icmpgt 5
         3: .line 38
            new java.net.URL
            dup
            aload 0 /* sysId */
            invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
         4: areturn
         5: .line 49
      StackMap locals: int
      StackMap stack:
            new java.io.File
            dup
            aload 0 /* sysId */
            invokespecial java.io.File.<init>:(Ljava/lang/String;)V
            invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
            astore 2 /* absPath */
        start local 2 // java.lang.String absPath
         6: .line 52
            getstatic java.io.File.separatorChar:C
            istore 3 /* sep */
        start local 3 // char sep
         7: .line 53
            iload 3 /* sep */
            bipush 47
            if_icmpeq 9
         8: .line 54
            aload 2 /* absPath */
            iload 3 /* sep */
            bipush 47
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
            astore 2 /* absPath */
        end local 3 // char sep
         9: .line 57
      StackMap locals: java.lang.String
      StackMap stack:
            aload 2 /* absPath */
            invokevirtual java.lang.String.length:()I
            ifle 11
            aload 2 /* absPath */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            bipush 47
            if_icmpeq 11
        10: .line 58
            new java.lang.StringBuilder
            dup
            ldc "/"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* absPath */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* absPath */
        11: .line 60
      StackMap locals:
      StackMap stack:
            new java.net.URL
            dup
            ldc "file"
            ldc ""
            aload 2 /* absPath */
            invokespecial java.net.URL.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
        12: areturn
        end local 2 // java.lang.String absPath
        end local 1 // int ix
        13: .line 61
      StackMap locals: java.lang.String
      StackMap stack: java.net.MalformedURLException
            astore 1 /* e */
        start local 1 // java.net.MalformedURLException e
        14: .line 62
            aload 1 /* e */
            aload 0 /* sysId */
            invokestatic com.ctc.wstx.util.URLUtil.throwIOException:(Ljava/lang/Exception;Ljava/lang/String;)V
        15: .line 63
            aconst_null
            areturn
        end local 1 // java.net.MalformedURLException e
        end local 0 // java.lang.String sysId
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   16     0    sysId  Ljava/lang/String;
            2   13     1       ix  I
            6   13     2  absPath  Ljava/lang/String;
            7    9     3      sep  C
           14   16     1        e  Ljava/net/MalformedURLException;
      Exception table:
        from    to  target  type
           0     4      13  Class java.net.MalformedURLException
           5    12      13  Class java.net.MalformedURLException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      sysId  

  public static java.net.URI uriFromSystemId(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/net/URI;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=4, args_size=1
        start local 0 // java.lang.String sysId
         0: .line 75
            aload 0 /* sysId */
            bipush 124
            iconst_0
            invokevirtual java.lang.String.indexOf:(II)I
            ifle 4
         1: .line 76
            getstatic com.ctc.wstx.util.URLUtil.URI_WINDOWS_FILE_PATTERN:Ljava/util/regex/Pattern;
            aload 0 /* sysId */
            invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
            invokevirtual java.util.regex.Matcher.matches:()Z
            ifeq 4
         2: .line 77
            new java.net.URI
            dup
            aload 0 /* sysId */
            bipush 124
            bipush 58
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
            invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
         3: areturn
         4: .line 81
      StackMap locals:
      StackMap stack:
            aload 0 /* sysId */
            bipush 58
            iconst_0
            invokevirtual java.lang.String.indexOf:(II)I
            istore 1 /* ix */
        start local 1 // int ix
         5: .line 82
            iload 1 /* ix */
            iconst_3
            if_icmplt 8
            iload 1 /* ix */
            bipush 8
            if_icmpgt 8
         6: .line 83
            new java.net.URI
            dup
            aload 0 /* sysId */
            invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
         7: areturn
         8: .line 85
      StackMap locals: int
      StackMap stack:
            new java.io.File
            dup
            aload 0 /* sysId */
            invokespecial java.io.File.<init>:(Ljava/lang/String;)V
            invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
            astore 2 /* absPath */
        start local 2 // java.lang.String absPath
         9: .line 86
            getstatic java.io.File.separatorChar:C
            istore 3 /* sep */
        start local 3 // char sep
        10: .line 87
            iload 3 /* sep */
            bipush 47
            if_icmpeq 12
        11: .line 88
            aload 2 /* absPath */
            iload 3 /* sep */
            bipush 47
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
            astore 2 /* absPath */
        12: .line 90
      StackMap locals: java.lang.String int
      StackMap stack:
            aload 2 /* absPath */
            invokevirtual java.lang.String.length:()I
            ifle 14
            aload 2 /* absPath */
            iconst_0
            invokevirtual java.lang.String.charAt:(I)C
            bipush 47
            if_icmpeq 14
        13: .line 91
            new java.lang.StringBuilder
            dup
            ldc "/"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* absPath */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* absPath */
        14: .line 93
      StackMap locals:
      StackMap stack:
            new java.net.URI
            dup
            ldc "file"
            aload 2 /* absPath */
            aconst_null
            invokespecial java.net.URI.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
        15: areturn
        end local 3 // char sep
        end local 2 // java.lang.String absPath
        end local 1 // int ix
        16: .line 94
      StackMap locals: java.lang.String
      StackMap stack: java.net.URISyntaxException
            astore 1 /* e */
        start local 1 // java.net.URISyntaxException e
        17: .line 95
            aload 1 /* e */
            aload 0 /* sysId */
            invokestatic com.ctc.wstx.util.URLUtil.throwIOException:(Ljava/lang/Exception;Ljava/lang/String;)V
        18: .line 96
            aconst_null
            areturn
        end local 1 // java.net.URISyntaxException e
        end local 0 // java.lang.String sysId
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   19     0    sysId  Ljava/lang/String;
            5   16     1       ix  I
            9   16     2  absPath  Ljava/lang/String;
           10   16     3      sep  C
           17   19     1        e  Ljava/net/URISyntaxException;
      Exception table:
        from    to  target  type
           0     3      16  Class java.net.URISyntaxException
           4     7      16  Class java.net.URISyntaxException
           8    15      16  Class java.net.URISyntaxException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      sysId  final

  public static java.net.URL urlFromSystemId(java.lang.String, java.net.URL);
    descriptor: (Ljava/lang/String;Ljava/net/URL;)Ljava/net/URL;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // java.lang.String sysId
        start local 1 // java.net.URL ctxt
         0: .line 103
            aload 1 /* ctxt */
            ifnonnull 2
         1: .line 104
            aload 0 /* sysId */
            invokestatic com.ctc.wstx.util.URLUtil.urlFromSystemId:(Ljava/lang/String;)Ljava/net/URL;
            areturn
         2: .line 107
      StackMap locals:
      StackMap stack:
            aload 0 /* sysId */
            invokestatic com.ctc.wstx.util.URLUtil.cleanSystemId:(Ljava/lang/String;)Ljava/lang/String;
            astore 0 /* sysId */
         3: .line 108
            new java.net.URL
            dup
            aload 1 /* ctxt */
            aload 0 /* sysId */
            invokespecial java.net.URL.<init>:(Ljava/net/URL;Ljava/lang/String;)V
         4: areturn
         5: .line 109
      StackMap locals:
      StackMap stack: java.net.MalformedURLException
            astore 2 /* e */
        start local 2 // java.net.MalformedURLException e
         6: .line 110
            aload 2 /* e */
            aload 0 /* sysId */
            invokestatic com.ctc.wstx.util.URLUtil.throwIOException:(Ljava/lang/Exception;Ljava/lang/String;)V
         7: .line 111
            aconst_null
            areturn
        end local 2 // java.net.MalformedURLException e
        end local 1 // java.net.URL ctxt
        end local 0 // java.lang.String sysId
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    8     0  sysId  Ljava/lang/String;
            0    8     1   ctxt  Ljava/net/URL;
            6    8     2      e  Ljava/net/MalformedURLException;
      Exception table:
        from    to  target  type
           2     4       5  Class java.net.MalformedURLException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      sysId  
      ctxt   

  public static java.net.URL urlFromCurrentDir();
    descriptor: ()Ljava/net/URL;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=0
         0: .line 126
            new java.io.File
            dup
            ldc "a"
            invokespecial java.io.File.<init>:(Ljava/lang/String;)V
            invokevirtual java.io.File.getAbsoluteFile:()Ljava/io/File;
            invokevirtual java.io.File.getParentFile:()Ljava/io/File;
            astore 0 /* parent */
        start local 0 // java.io.File parent
         1: .line 127
            aload 0 /* parent */
            invokestatic com.ctc.wstx.util.URLUtil.toURL:(Ljava/io/File;)Ljava/net/URL;
            areturn
        end local 0 // java.io.File parent
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            1    2     0  parent  Ljava/io/File;
    Exceptions:
      throws java.io.IOException

  public static java.io.InputStream inputStreamFromURL(java.net.URL);
    descriptor: (Ljava/net/URL;)Ljava/io/InputStream;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // java.net.URL url
         0: .line 139
            ldc "file"
            aload 0 /* url */
            invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 7
         1: .line 146
            aload 0 /* url */
            invokevirtual java.net.URL.getHost:()Ljava/lang/String;
            astore 1 /* host */
        start local 1 // java.lang.String host
         2: .line 147
            aload 1 /* host */
            ifnull 3
            aload 1 /* host */
            invokevirtual java.lang.String.length:()I
            ifne 7
         3: .line 151
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* url */
            invokevirtual java.net.URL.getPath:()Ljava/lang/String;
            astore 2 /* path */
        start local 2 // java.lang.String path
         4: .line 152
            aload 2 /* path */
            bipush 37
            invokevirtual java.lang.String.indexOf:(I)I
            iflt 6
         5: .line 153
            aload 2 /* path */
            ldc "UTF-8"
            invokestatic java.net.URLDecoder.decode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            astore 2 /* path */
         6: .line 155
      StackMap locals: java.lang.String
      StackMap stack:
            new java.io.FileInputStream
            dup
            aload 2 /* path */
            invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
            areturn
        end local 2 // java.lang.String path
        end local 1 // java.lang.String host
         7: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* url */
            invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
            areturn
        end local 0 // java.net.URL url
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0   url  Ljava/net/URL;
            2    7     1  host  Ljava/lang/String;
            4    7     2  path  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      url   

  public static java.io.OutputStream outputStreamFromURL(java.net.URL);
    descriptor: (Ljava/net/URL;)Ljava/io/OutputStream;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // java.net.URL url
         0: .line 171
            ldc "file"
            aload 0 /* url */
            invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 4
         1: .line 175
            aload 0 /* url */
            invokevirtual java.net.URL.getHost:()Ljava/lang/String;
            astore 1 /* host */
        start local 1 // java.lang.String host
         2: .line 176
            aload 1 /* host */
            ifnull 3
            aload 1 /* host */
            invokevirtual java.lang.String.length:()I
            ifne 4
         3: .line 177
      StackMap locals: java.lang.String
      StackMap stack:
            new java.io.FileOutputStream
            dup
            aload 0 /* url */
            invokevirtual java.net.URL.getPath:()Ljava/lang/String;
            invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
            areturn
        end local 1 // java.lang.String host
         4: .line 180
      StackMap locals:
      StackMap stack:
            aload 0 /* url */
            invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
            invokevirtual java.net.URLConnection.getOutputStream:()Ljava/io/OutputStream;
            areturn
        end local 0 // java.net.URL url
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0   url  Ljava/net/URL;
            2    4     1  host  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      url   

  public static java.net.URL toURL(java.io.File);
    descriptor: (Ljava/io/File;)Ljava/net/URL;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.io.File f
         0: .line 189
            aload 0 /* f */
            invokevirtual java.io.File.toURI:()Ljava/net/URI;
            invokevirtual java.net.URI.toURL:()Ljava/net/URL;
            areturn
        end local 0 // java.io.File f
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     f  Ljava/io/File;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      f     

  private static java.lang.String cleanSystemId(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // java.lang.String sysId
         0: .line 200
            aload 0 /* sysId */
            bipush 124
            invokevirtual java.lang.String.indexOf:(I)I
            istore 1 /* ix */
        start local 1 // int ix
         1: .line 201
            iload 1 /* ix */
            ifle 5
            getstatic com.ctc.wstx.util.URLUtil.URI_WINDOWS_FILE_PATTERN:Ljava/util/regex/Pattern;
            aload 0 /* sysId */
            invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
            invokevirtual java.util.regex.Matcher.matches:()Z
            ifeq 5
         2: .line 202
            new java.lang.StringBuilder
            dup
            aload 0 /* sysId */
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            astore 2 /* sb */
        start local 2 // java.lang.StringBuilder sb
         3: .line 203
            aload 2 /* sb */
            iload 1 /* ix */
            bipush 58
            invokevirtual java.lang.StringBuilder.setCharAt:(IC)V
         4: .line 204
            aload 2 /* sb */
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 2 // java.lang.StringBuilder sb
         5: .line 206
      StackMap locals: int
      StackMap stack:
            aload 0 /* sysId */
            areturn
        end local 1 // int ix
        end local 0 // java.lang.String sysId
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    6     0  sysId  Ljava/lang/String;
            1    6     1     ix  I
            3    5     2     sb  Ljava/lang/StringBuilder;
    MethodParameters:
       Name  Flags
      sysId  final

  private static void throwIOException(java.lang.Exception, java.lang.String);
    descriptor: (Ljava/lang/Exception;Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // java.lang.Exception mex
        start local 1 // java.lang.String sysId
         0: .line 218
            new java.lang.StringBuilder
            dup
            ldc "[resolving systemId '"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* sysId */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc "']: "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* mex */
            invokevirtual java.lang.Exception.toString:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* msg */
        start local 2 // java.lang.String msg
         1: .line 219
            aload 2 /* msg */
            aload 0 /* mex */
            invokestatic com.ctc.wstx.util.ExceptionUtil.constructIOException:(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/io/IOException;
            athrow
        end local 2 // java.lang.String msg
        end local 1 // java.lang.String sysId
        end local 0 // java.lang.Exception mex
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0    mex  Ljava/lang/Exception;
            0    2     1  sysId  Ljava/lang/String;
            1    2     2    msg  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      mex    
      sysId  
}
SourceFile: "URLUtil.java"