wms-mediareader-smil

16:54:11.765 INFO  jd.cli.Main - Decompiling wms-mediareader-smil.jar
package com.wowza.wms.mediareader.smil;

import com.wowza.io.IRandomAccessReader;
import com.wowza.io.RandomAccessReaderFactory;
import com.wowza.util.Base64;
import com.wowza.wms.application.IApplicationInstance;
import com.wowza.wms.application.WMSProperties;
import com.wowza.wms.httpstreamer.model.IHTTPStreamerSession;
import com.wowza.wms.medialist.MediaList;
import com.wowza.wms.stream.IMediaStream;
import com.wowza.wms.stream.MediaListReaderBase;
import org.w3c.dom.Element;

public class MediaListReaderSMIL
  extends MediaListReaderBase
{
  private static final Class<MediaListReaderSMIL> a = MediaListReaderSMIL.class;
  public static final long MAXFILELENGTH = 1048576L;
  protected MediaList mediaList = new MediaList();
  protected IRandomAccessReader fileStream = null;
  protected String randomAccessReaderClass = Base64.endsWith(39 * 5, " +(h0'>0*b$!a\0248 67!\00466=56\035>=:32\020&%!#5");
  protected boolean errorReported = false;
  protected long maxFileLength = 1048576L;
  protected String contextStr = "";
  
  public void init(IApplicationInstance paramIApplicationInstance, IMediaStream paramIMediaStream, String paramString1, String paramString2, String paramString3, IHTTPStreamerSession paramIHTTPStreamerSession)
  {
    super.init(paramIApplicationInstance, paramIMediaStream, paramString1, paramString2, paramString3, paramIHTTPStreamerSession);
    
    fileStream = RandomAccessReaderFactory.createInstance(appInstance, randomAccessReaderClass, basePath, mediaName, mediaExtension, stream);
    contextStr = (paramIApplicationInstance.getContextStr() + ":" + paramString3);
    mediaList.setName(paramString3);
  }
  
  /* Error */
  public void open(String arg1, String arg2)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 108	com/wowza/wms/stream/MediaListReaderBase:lock	Ljava/lang/Object;
    //   4: dup
    //   5: astore_3
    //   6: goto +174 -> 180
    //   9: return
    //   10: aload 6
    //   12: athrow
    //   13: aload_0
    //   14: getfield 33	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:fileStream	Lcom/wowza/io/IRandomAccessReader;
    //   17: invokeinterface 114 1 0
    //   22: ifeq +118 -> 140
    //   25: goto +140 -> 165
    //   28: aload_0
    //   29: getfield 33	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:fileStream	Lcom/wowza/io/IRandomAccessReader;
    //   32: invokeinterface 116 1 0
    //   37: aload_0
    //   38: iconst_0
    //   39: putfield 45	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:errorReported	Z
    //   42: iconst_1
    //   43: istore 4
    //   45: goto +69 -> 114
    //   48: getstatic 118	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:a	Ljava/lang/Class;
    //   51: invokestatic 124	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   54: getstatic 130	org/apache/log4j/Level:WARN	Lorg/apache/log4j/Level;
    //   57: new 80	java/lang/StringBuilder
    //   60: dup
    //   61: invokespecial 81	java/lang/StringBuilder:<init>	()V
    //   64: bipush -4
    //   66: bipush 51
    //   68: isub
    //   69: ldc -124
    //   71: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   74: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   77: aload 5
    //   79: invokevirtual 133	java/lang/Exception:toString	()Ljava/lang/String;
    //   82: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   85: invokevirtual 96	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   88: aconst_null
    //   89: ldc -121
    //   91: bipush -56
    //   93: bipush 49
    //   95: isub
    //   96: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   99: ldc -113
    //   101: sipush 404
    //   104: aload_0
    //   105: getfield 65	com/wowza/wms/stream/MediaListReaderBase:mediaName	Ljava/lang/String;
    //   108: invokevirtual 149	com/wowza/wms/logging/WMSLogger:log	(Lorg/apache/log4j/Level;Ljava/lang/String;Lcom/wowza/wms/stream/IMediaStream;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
    //   111: goto +11 -> 122
    //   114: goto +58 -> 172
    //   117: aload_3
    //   118: monitorexit
    //   119: goto +72 -> 191
    //   122: aload_0
    //   123: iconst_1
    //   124: putfield 45	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:errorReported	Z
    //   127: goto +45 -> 172
    //   130: aload_0
    //   131: getfield 33	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:fileStream	Lcom/wowza/io/IRandomAccessReader;
    //   134: ifnull -17 -> 117
    //   137: goto +21 -> 158
    //   140: iconst_0
    //   141: istore 4
    //   143: goto -115 -> 28
    //   146: astore 5
    //   148: aload_0
    //   149: getfield 45	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:errorReported	Z
    //   152: ifne -30 -> 122
    //   155: goto -107 -> 48
    //   158: aload_0
    //   159: invokevirtual 152	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:readMediaList	()V
    //   162: goto -45 -> 117
    //   165: aload_0
    //   166: invokevirtual 155	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:close	()V
    //   169: goto -29 -> 140
    //   172: iload 4
    //   174: ifeq -57 -> 117
    //   177: goto -47 -> 130
    //   180: monitorenter
    //   181: goto -168 -> 13
    //   184: astore 6
    //   186: aload_3
    //   187: monitorexit
    //   188: goto -178 -> 10
    //   191: goto -182 -> 9
    // Line number table:
    //   Java source line #46	-> byte code offset #0
    //   Java source line #75	-> byte code offset #9
    //   Java source line #74	-> byte code offset #10
    //   Java source line #48	-> byte code offset #13
    //   Java source line #54	-> byte code offset #28
    //   Java source line #55	-> byte code offset #37
    //   Java source line #56	-> byte code offset #42
    //   Java source line #63	-> byte code offset #48
    //   Java source line #67	-> byte code offset #114
    //   Java source line #74	-> byte code offset #117
    //   Java source line #66	-> byte code offset #122
    //   Java source line #69	-> byte code offset #130
    //   Java source line #51	-> byte code offset #140
    //   Java source line #59	-> byte code offset #146
    //   Java source line #61	-> byte code offset #148
    //   Java source line #71	-> byte code offset #158
    //   Java source line #49	-> byte code offset #165
    //   Java source line #69	-> byte code offset #172
    //   Java source line #46	-> byte code offset #180
    //   Java source line #74	-> byte code offset #184
    // Exception table:
    //   from	to	target	type
    //   28	48	146	java/lang/Exception
    //   13	180	184	finally
    //   184	191	184	finally
  }
  
  /* Error */
  public void close()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 108	com/wowza/wms/stream/MediaListReaderBase:lock	Ljava/lang/Object;
    //   4: dup
    //   5: astore_1
    //   6: goto +10 -> 16
    //   9: astore_3
    //   10: aload_1
    //   11: monitorexit
    //   12: goto +8 -> 20
    //   15: return
    //   16: monitorenter
    //   17: goto +8 -> 25
    //   20: aload_3
    //   21: athrow
    //   22: goto -7 -> 15
    //   25: aload_0
    //   26: getfield 33	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:fileStream	Lcom/wowza/io/IRandomAccessReader;
    //   29: ifnull +78 -> 107
    //   32: aload_0
    //   33: getfield 33	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:fileStream	Lcom/wowza/io/IRandomAccessReader;
    //   36: invokeinterface 162 1 0
    //   41: goto +66 -> 107
    //   44: aload_1
    //   45: monitorexit
    //   46: goto -24 -> 22
    //   49: astore_2
    //   50: getstatic 118	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:a	Ljava/lang/Class;
    //   53: invokestatic 124	com/wowza/wms/logging/WMSLoggerFactory:getLogger	(Ljava/lang/Class;)Lcom/wowza/wms/logging/WMSLogger;
    //   56: new 80	java/lang/StringBuilder
    //   59: dup
    //   60: invokespecial 81	java/lang/StringBuilder:<init>	()V
    //   63: sipush 493
    //   66: bipush 113
    //   68: idiv
    //   69: ldc -92
    //   71: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   74: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   77: aload_0
    //   78: getfield 51	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:contextStr	Ljava/lang/String;
    //   81: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   84: ldc -90
    //   86: bipush -63
    //   88: bipush -44
    //   90: isub
    //   91: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   94: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   97: invokevirtual 96	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   100: aload_2
    //   101: invokevirtual 170	com/wowza/wms/logging/WMSLogger:error	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   104: goto -60 -> 44
    //   107: goto -63 -> 44
    // Line number table:
    //   Java source line #79	-> byte code offset #0
    //   Java source line #90	-> byte code offset #9
    //   Java source line #91	-> byte code offset #15
    //   Java source line #79	-> byte code offset #16
    //   Java source line #90	-> byte code offset #20
    //   Java source line #83	-> byte code offset #25
    //   Java source line #84	-> byte code offset #32
    //   Java source line #90	-> byte code offset #44
    //   Java source line #86	-> byte code offset #49
    //   Java source line #88	-> byte code offset #50
    //   Java source line #89	-> byte code offset #107
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	110	0	this	MediaListReaderSMIL
    //   5	40	1	localObject1	Object
    //   49	52	2	localException	Exception
    //   9	12	3	localObject2	Object
    // Exception table:
    //   from	to	target	type
    //   9	15	9	finally
    //   25	110	9	finally
    //   25	44	49	java/lang/Exception
  }
  
  public boolean isOpen()
  {
    if (fileStream == null) {
      return false;
    }
    return fileStream.isOpen();
  }
  
  public void setProperties(WMSProperties paramWMSProperties)
  {
    randomAccessReaderClass = paramWMSProperties.getPropertyStr(Base64.endsWith(42 + -18, "jxtsp_|cdqpV`gcm{Igm~}"), randomAccessReaderClass);
    maxFileLength = paramWMSProperties.getPropertyLong(Base64.endsWith(40 + 112, "ktswQ|fYimgOakas`"), maxFileLength);
  }
  
  public String getPath()
  {
    return fileStream.getPath();
  }
  
  public MediaList getMediaList()
  {
    return mediaList;
  }
  
  protected String getAttributeCheckEmpty(Element paramElement, String paramString)
  {
    String str = paramElement.getAttribute(paramString);
    if (str == null) {
      return str;
    }
    for (;; str.length() > 0)
    {
      str = null; break;
    }
  }
  
  /* Error */
  protected java.util.Map<String, String> getSMILParams(javax.xml.xpath.XPath paramXPath, org.w3c.dom.Node paramNode)
  {
    // Byte code:
    //   0: new 207	java/util/HashMap
    //   3: dup
    //   4: invokespecial 208	java/util/HashMap:<init>	()V
    //   7: astore_3
    //   8: goto +13 -> 21
    //   11: aload_3
    //   12: areturn
    //   13: astore 4
    //   15: goto -4 -> 11
    //   18: goto -7 -> 11
    //   21: aload_1
    //   22: bipush 91
    //   24: bipush 105
    //   26: iadd
    //   27: ldc -46
    //   29: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   32: invokeinterface 216 2 0
    //   37: aload_2
    //   38: getstatic 222	javax/xml/xpath/XPathConstants:NODESET	Ljavax/xml/namespace/QName;
    //   41: invokeinterface 228 3 0
    //   46: checkcast 230	org/w3c/dom/NodeList
    //   49: astore 4
    //   51: iconst_0
    //   52: istore 5
    //   54: goto +29 -> 83
    //   57: iinc 5 1
    //   60: goto +23 -> 83
    //   63: aload_3
    //   64: aload 8
    //   66: getstatic 236	java/util/Locale:ENGLISH	Ljava/util/Locale;
    //   69: invokevirtual 240	java/lang/String:toLowerCase	(Ljava/util/Locale;)Ljava/lang/String;
    //   72: aload 9
    //   74: invokeinterface 246 3 0
    //   79: pop
    //   80: goto -23 -> 57
    //   83: iload 5
    //   85: aload 4
    //   87: invokeinterface 249 1 0
    //   92: if_icmpge -74 -> 18
    //   95: goto +11 -> 106
    //   98: aload 9
    //   100: ifnonnull -37 -> 63
    //   103: goto +68 -> 171
    //   106: aload 4
    //   108: iload 5
    //   110: invokeinterface 253 2 0
    //   115: astore 6
    //   117: aload 6
    //   119: checkcast 195	org/w3c/dom/Element
    //   122: astore 7
    //   124: aload_0
    //   125: aload 7
    //   127: ldc -1
    //   129: sipush 1130
    //   132: sipush 172
    //   135: idiv
    //   136: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   139: invokevirtual 257	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:getAttributeCheckEmpty	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   142: astore 8
    //   144: aload_0
    //   145: aload 7
    //   147: bipush 59
    //   149: bipush 31
    //   151: imul
    //   152: ldc_w 259
    //   155: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   158: invokevirtual 257	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:getAttributeCheckEmpty	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   161: astore 9
    //   163: aload 8
    //   165: ifnull -108 -> 57
    //   168: goto -70 -> 98
    //   171: goto -114 -> 57
    // Line number table:
    //   Java source line #129	-> byte code offset #0
    //   Java source line #151	-> byte code offset #11
    //   Java source line #147	-> byte code offset #13
    //   Java source line #149	-> byte code offset #18
    //   Java source line #133	-> byte code offset #21
    //   Java source line #134	-> byte code offset #51
    //   Java source line #144	-> byte code offset #63
    //   Java source line #134	-> byte code offset #83
    //   Java source line #141	-> byte code offset #98
    //   Java source line #136	-> byte code offset #106
    //   Java source line #137	-> byte code offset #117
    //   Java source line #139	-> byte code offset #124
    //   Java source line #140	-> byte code offset #144
    //   Java source line #141	-> byte code offset #163
    //   Java source line #142	-> byte code offset #171
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	174	0	this	MediaListReaderSMIL
    //   0	174	1	paramXPath	javax.xml.xpath.XPath
    //   0	174	2	paramNode	org.w3c.dom.Node
    //   7	57	3	localHashMap	java.util.HashMap
    //   13	1	4	localException	Exception
    //   49	58	4	localNodeList	org.w3c.dom.NodeList
    //   52	57	5	i	int
    //   115	3	6	localNode	org.w3c.dom.Node
    //   122	24	7	localElement	Element
    //   64	100	8	str	String
    //   72	90	9	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   21	174	13	java/lang/Exception
  }
  
  /* Error */
  protected long parseClockValue(String paramString)
  {
    // Byte code:
    //   0: lconst_0
    //   1: lstore_2
    //   2: aload_1
    //   3: ifnull +72 -> 75
    //   6: goto +151 -> 157
    //   9: astore 11
    //   11: goto +296 -> 307
    //   14: dload 6
    //   16: dload 9
    //   18: dadd
    //   19: dstore 6
    //   21: iinc 5 -1
    //   24: iload 5
    //   26: iflt +109 -> 135
    //   29: goto +25 -> 54
    //   32: aload 8
    //   34: invokestatic 269	java/lang/Double:parseDouble	(Ljava/lang/String;)D
    //   37: dstore 9
    //   39: goto +249 -> 288
    //   42: aload_1
    //   43: ldc 93
    //   45: invokevirtual 273	java/lang/String:indexOf	(Ljava/lang/String;)I
    //   48: iflt +282 -> 330
    //   51: goto +195 -> 246
    //   54: aload 4
    //   56: iload 5
    //   58: aaload
    //   59: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   62: astore 8
    //   64: dconst_0
    //   65: dstore 9
    //   67: goto -35 -> 32
    //   70: astore 7
    //   72: goto +28 -> 100
    //   75: lload_2
    //   76: lreturn
    //   77: aload_1
    //   78: iconst_0
    //   79: aload_1
    //   80: invokevirtual 203	java/lang/String:length	()I
    //   83: iconst_1
    //   84: isub
    //   85: invokevirtual 280	java/lang/String:substring	(II)Ljava/lang/String;
    //   88: astore 4
    //   90: dconst_0
    //   91: dstore 5
    //   93: goto +130 -> 223
    //   96: goto -82 -> 14
    //   99: nop
    //   100: dload 5
    //   102: ldc2_w 281
    //   105: dmul
    //   106: invokestatic 288	java/lang/Math:round	(D)J
    //   109: lstore_2
    //   110: goto -35 -> 75
    //   113: dload 6
    //   115: dload 9
    //   117: ldc2_w 289
    //   120: dmul
    //   121: dadd
    //   122: dstore 6
    //   124: iinc 5 -1
    //   127: iload 5
    //   129: iflt +6 -> 135
    //   132: goto +159 -> 291
    //   135: dload 6
    //   137: ldc2_w 281
    //   140: dmul
    //   141: invokestatic 288	java/lang/Math:round	(D)J
    //   144: lstore_2
    //   145: goto -70 -> 75
    //   148: aload_1
    //   149: invokestatic 269	java/lang/Double:parseDouble	(Ljava/lang/String;)D
    //   152: dstore 4
    //   154: goto +37 -> 191
    //   157: aload_1
    //   158: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   161: astore_1
    //   162: aload_1
    //   163: getstatic 236	java/util/Locale:ENGLISH	Ljava/util/Locale;
    //   166: invokevirtual 240	java/lang/String:toLowerCase	(Ljava/util/Locale;)Ljava/lang/String;
    //   169: ldc_w 292
    //   172: invokevirtual 295	java/lang/String:endsWith	(Ljava/lang/String;)Z
    //   175: ifeq -133 -> 42
    //   178: goto -101 -> 77
    //   181: aload 8
    //   183: invokestatic 269	java/lang/Double:parseDouble	(Ljava/lang/String;)D
    //   186: dstore 9
    //   188: goto +97 -> 285
    //   191: goto +19 -> 210
    //   194: aload 4
    //   196: iload 5
    //   198: aaload
    //   199: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   202: astore 8
    //   204: dconst_0
    //   205: dstore 9
    //   207: goto +63 -> 270
    //   210: dload 4
    //   212: ldc2_w 281
    //   215: dmul
    //   216: invokestatic 288	java/lang/Math:round	(D)J
    //   219: lstore_2
    //   220: goto -145 -> 75
    //   223: aload 4
    //   225: invokestatic 269	java/lang/Double:parseDouble	(Ljava/lang/String;)D
    //   228: dstore 5
    //   230: goto -131 -> 99
    //   233: astore 11
    //   235: goto -221 -> 14
    //   238: iload 5
    //   240: iflt -105 -> 135
    //   243: goto -49 -> 194
    //   246: aload_1
    //   247: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   250: ldc 93
    //   252: invokevirtual 299	java/lang/String:split	(Ljava/lang/String;)[Ljava/lang/String;
    //   255: astore 4
    //   257: aload 4
    //   259: arraylength
    //   260: iconst_1
    //   261: isub
    //   262: istore 5
    //   264: dconst_0
    //   265: dstore 6
    //   267: goto -29 -> 238
    //   270: aload 8
    //   272: invokestatic 269	java/lang/Double:parseDouble	(Ljava/lang/String;)D
    //   275: dstore 9
    //   277: goto -181 -> 96
    //   280: astore 11
    //   282: goto -169 -> 113
    //   285: goto +22 -> 307
    //   288: goto -175 -> 113
    //   291: aload 4
    //   293: iload 5
    //   295: aaload
    //   296: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   299: astore 8
    //   301: dconst_0
    //   302: dstore 9
    //   304: goto -123 -> 181
    //   307: dload 6
    //   309: dload 9
    //   311: ldc2_w 289
    //   314: dmul
    //   315: ldc2_w 289
    //   318: dmul
    //   319: dadd
    //   320: dstore 6
    //   322: goto -84 -> 238
    //   325: astore 6
    //   327: goto -117 -> 210
    //   330: dconst_0
    //   331: dstore 4
    //   333: goto -185 -> 148
    // Line number table:
    //   Java source line #156	-> byte code offset #0
    //   Java source line #158	-> byte code offset #2
    //   Java source line #229	-> byte code offset #9
    //   Java source line #194	-> byte code offset #14
    //   Java source line #199	-> byte code offset #21
    //   Java source line #202	-> byte code offset #24
    //   Java source line #208	-> byte code offset #32
    //   Java source line #174	-> byte code offset #42
    //   Java source line #204	-> byte code offset #54
    //   Java source line #205	-> byte code offset #64
    //   Java source line #169	-> byte code offset #70
    //   Java source line #254	-> byte code offset #75
    //   Java source line #163	-> byte code offset #77
    //   Java source line #164	-> byte code offset #90
    //   Java source line #193	-> byte code offset #96
    //   Java source line #171	-> byte code offset #99
    //   Java source line #172	-> byte code offset #100
    //   Java source line #173	-> byte code offset #110
    //   Java source line #213	-> byte code offset #113
    //   Java source line #218	-> byte code offset #124
    //   Java source line #221	-> byte code offset #127
    //   Java source line #238	-> byte code offset #135
    //   Java source line #239	-> byte code offset #145
    //   Java source line #245	-> byte code offset #148
    //   Java source line #160	-> byte code offset #157
    //   Java source line #161	-> byte code offset #162
    //   Java source line #227	-> byte code offset #181
    //   Java source line #249	-> byte code offset #191
    //   Java source line #185	-> byte code offset #194
    //   Java source line #186	-> byte code offset #204
    //   Java source line #250	-> byte code offset #210
    //   Java source line #167	-> byte code offset #223
    //   Java source line #191	-> byte code offset #233
    //   Java source line #183	-> byte code offset #238
    //   Java source line #176	-> byte code offset #246
    //   Java source line #177	-> byte code offset #257
    //   Java source line #179	-> byte code offset #264
    //   Java source line #189	-> byte code offset #270
    //   Java source line #210	-> byte code offset #280
    //   Java source line #231	-> byte code offset #285
    //   Java source line #212	-> byte code offset #288
    //   Java source line #223	-> byte code offset #291
    //   Java source line #224	-> byte code offset #301
    //   Java source line #232	-> byte code offset #307
    //   Java source line #233	-> byte code offset #322
    //   Java source line #247	-> byte code offset #325
    //   Java source line #242	-> byte code offset #330
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	336	0	this	MediaListReaderSMIL
    //   0	336	1	paramString	String
    //   1	219	2	l	long
    //   54	35	4	str1	String
    //   152	72	4	d1	double
    //   255	37	4	arrayOfString	String[]
    //   331	1	4	d2	double
    //   21	36	5	i	int
    //   91	148	5	d3	double
    //   262	32	5	j	int
    //   14	1	6	localObject1	Object
    //   19	302	6	d4	double
    //   325	1	6	localException1	Exception
    //   70	1	7	localException2	Exception
    //   32	268	8	str2	String
    //   16	1	9	localObject2	Object
    //   37	273	9	d5	double
    //   9	1	11	localException3	Exception
    //   233	1	11	localException4	Exception
    //   280	1	11	localException5	Exception
    // Exception table:
    //   from	to	target	type
    //   181	191	9	java/lang/Exception
    //   223	233	70	java/lang/Exception
    //   270	280	233	java/lang/Exception
    //   32	42	280	java/lang/Exception
    //   148	157	325	java/lang/Exception
  }
  
  private final String a(Element paramElement, String paramString)
  {
    String str = paramElement.getAttribute(paramString);
    if (str == null) {
      return str;
    }
    for (;; str.length() > 0)
    {
      str = null; break;
    }
  }
  
  /* Error */
  protected void readMediaList()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 31	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:mediaList	Lcom/wowza/wms/medialist/MediaList;
    //   4: invokevirtual 304	com/wowza/wms/medialist/MediaList:reset	()V
    //   7: aload_0
    //   8: getfield 33	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:fileStream	Lcom/wowza/io/IRandomAccessReader;
    //   11: invokeinterface 307 1 0
    //   16: lstore_1
    //   17: lload_1
    //   18: aload_0
    //   19: getfield 47	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:maxFileLength	J
    //   22: lcmp
    //   23: ifle +1667 -> 1690
    //   26: goto +2428 -> 2454
    //   29: aload 56
    //   31: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   34: getstatic 236	java/util/Locale:ENGLISH	Ljava/util/Locale;
    //   37: invokevirtual 240	java/lang/String:toLowerCase	(Ljava/util/Locale;)Ljava/lang/String;
    //   40: astore 56
    //   42: aload 56
    //   44: ldc_w 309
    //   47: invokevirtual 312	java/lang/String:startsWith	(Ljava/lang/String;)Z
    //   50: ifne +468 -> 518
    //   53: goto +2266 -> 2319
    //   56: aload 52
    //   58: ifnonnull +546 -> 604
    //   61: goto +1173 -> 1234
    //   64: invokevirtual 318	com/wowza/wms/medialist/MediaListRendition:setWowzaAudioOnly	(Z)V
    //   67: goto +1986 -> 2053
    //   70: aload 56
    //   72: ifnull +333 -> 405
    //   75: goto +285 -> 360
    //   78: aload_0
    //   79: aload 21
    //   81: bipush -19
    //   83: bipush -39
    //   85: isub
    //   86: ldc_w 320
    //   89: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   92: invokespecial 322	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:a	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   95: astore 49
    //   97: goto +635 -> 732
    //   100: aload 46
    //   102: ldc_w 324
    //   105: bipush 38
    //   107: bipush 61
    //   109: isub
    //   110: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   113: invokeinterface 328 2 0
    //   118: checkcast 159	java/lang/String
    //   121: astore 34
    //   123: goto +2913 -> 3036
    //   126: iload 57
    //   128: ifeq +6 -> 134
    //   131: goto +13 -> 144
    //   134: aload 56
    //   136: invokestatic 333	java/lang/Long:parseLong	(Ljava/lang/String;)J
    //   139: lstore 58
    //   141: goto +1486 -> 1627
    //   144: aload_0
    //   145: aload 56
    //   147: invokevirtual 335	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:parseClockValue	(Ljava/lang/String;)J
    //   150: lstore 58
    //   152: goto +1475 -> 1627
    //   155: aload 56
    //   157: ifnonnull +2785 -> 2942
    //   160: goto +1332 -> 1492
    //   163: aload 61
    //   165: iload 29
    //   167: invokevirtual 339	com/wowza/wms/medialist/MediaListRendition:setBitrateVideo	(I)V
    //   170: goto +60 -> 230
    //   173: aload 34
    //   175: ifnonnull +2861 -> 3036
    //   178: goto -78 -> 100
    //   181: aload_0
    //   182: aload 21
    //   184: bipush 61
    //   186: bipush 113
    //   188: iadd
    //   189: ldc_w 341
    //   192: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   195: invokespecial 322	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:a	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   198: astore 50
    //   200: aload 50
    //   202: ifnonnull +669 -> 871
    //   205: goto +1642 -> 1847
    //   208: aload_0
    //   209: aload 21
    //   211: ldc_w 343
    //   214: bipush -41
    //   216: bipush -61
    //   218: isub
    //   219: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   222: invokevirtual 257	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:getAttributeCheckEmpty	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   225: astore 56
    //   227: goto +170 -> 397
    //   230: iload 30
    //   232: ifle +1450 -> 1682
    //   235: goto +1067 -> 1302
    //   238: aload 48
    //   240: bipush 31
    //   242: bipush 43
    //   244: iadd
    //   245: ldc_w 345
    //   248: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   251: invokevirtual 349	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   254: ifeq +963 -> 1217
    //   257: goto +313 -> 570
    //   260: astore 53
    //   262: goto +1050 -> 1312
    //   265: iload 37
    //   267: ifle +2421 -> 2688
    //   270: goto +2892 -> 3162
    //   273: iload 29
    //   275: ifle -45 -> 230
    //   278: goto -115 -> 163
    //   281: aload 49
    //   283: invokestatic 354	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   286: istore 27
    //   288: goto +1075 -> 1363
    //   291: aload 21
    //   293: bipush 121
    //   295: bipush -54
    //   297: iadd
    //   298: ldc_w 356
    //   301: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   304: invokeinterface 199 2 0
    //   309: astore 24
    //   311: ldc_w 358
    //   314: bipush -46
    //   316: bipush -22
    //   318: isub
    //   319: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   322: astore 25
    //   324: new 80	java/lang/StringBuilder
    //   327: dup
    //   328: invokespecial 81	java/lang/StringBuilder:<init>	()V
    //   331: aload 12
    //   333: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   336: aload 24
    //   338: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   341: invokevirtual 96	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   344: astore 26
    //   346: aload 26
    //   348: invokevirtual 203	java/lang/String:length	()I
    //   351: ifgt +2677 -> 3028
    //   354: goto +1132 -> 1486
    //   357: goto +871 -> 1228
    //   360: aload 56
    //   362: invokevirtual 276	java/lang/String:trim	()Ljava/lang/String;
    //   365: getstatic 236	java/util/Locale:ENGLISH	Ljava/util/Locale;
    //   368: invokevirtual 240	java/lang/String:toLowerCase	(Ljava/util/Locale;)Ljava/lang/String;
    //   371: astore 56
    //   373: aload 56
    //   375: ldc_w 309
    //   378: invokevirtual 312	java/lang/String:startsWith	(Ljava/lang/String;)Z
    //   381: ifne +428 -> 809
    //   384: goto +2872 -> 3256
    //   387: bipush 8
    //   389: istore 23
    //   391: goto -100 -> 291
    //   394: goto +2310 -> 2704
    //   397: aload 56
    //   399: ifnull +289 -> 688
    //   402: goto +2233 -> 2635
    //   405: aconst_null
    //   406: astore 56
    //   408: aload 56
    //   410: ifnonnull +1187 -> 1597
    //   413: goto +781 -> 1194
    //   416: aload 34
    //   418: ifnonnull +262 -> 680
    //   421: goto +1576 -> 1997
    //   424: new 360	com/wowza/wms/medialist/MediaListSegment
    //   427: dup
    //   428: invokespecial 361	com/wowza/wms/medialist/MediaListSegment:<init>	()V
    //   431: astore 14
    //   433: aload_0
    //   434: getfield 31	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:mediaList	Lcom/wowza/wms/medialist/MediaList;
    //   437: aload 14
    //   439: invokevirtual 365	com/wowza/wms/medialist/MediaList:addSegment	(Lcom/wowza/wms/medialist/MediaListSegment;)V
    //   442: goto +500 -> 942
    //   445: aload 50
    //   447: invokestatic 354	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   450: istore 28
    //   452: goto +1303 -> 1755
    //   455: aload 22
    //   457: ldc_w 367
    //   460: sipush 546
    //   463: bipush 114
    //   465: idiv
    //   466: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   469: invokevirtual 370	java/lang/String:equalsIgnoreCase	(Ljava/lang/String;)Z
    //   472: ifeq +588 -> 1060
    //   475: goto -88 -> 387
    //   478: aload_0
    //   479: aload 21
    //   481: ldc_w 372
    //   484: bipush 55
    //   486: bipush 32
    //   488: isub
    //   489: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   492: invokevirtual 257	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:getAttributeCheckEmpty	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   495: astore 56
    //   497: goto +539 -> 1036
    //   500: aload 61
    //   502: iconst_1
    //   503: invokevirtual 376	com/wowza/wms/medialist/MediaListRendition:getProperties	(Z)Lcom/wowza/wms/application/WMSProperties;
    //   506: astore 62
    //   508: aload 62
    //   510: aload 46
    //   512: invokevirtual 380	com/wowza/wms/application/WMSProperties:putAll	(Ljava/util/Map;)V
    //   515: goto +1230 -> 1745
    //   518: iconst_1
    //   519: istore 32
    //   521: goto +1465 -> 1986
    //   524: aload 56
    //   526: ifnonnull +1515 -> 2041
    //   529: goto +1999 -> 2528
    //   532: iconst_1
    //   533: goto +2265 -> 2798
    //   536: astore 54
    //   538: goto +1404 -> 1942
    //   541: bipush 18
    //   543: istore 23
    //   545: goto -254 -> 291
    //   548: aload_0
    //   549: aload 21
    //   551: bipush 39
    //   553: bipush 21
    //   555: imul
    //   556: ldc_w 382
    //   559: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   562: invokevirtual 257	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:getAttributeCheckEmpty	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   565: astore 56
    //   567: goto -412 -> 155
    //   570: ldc2_w 383
    //   573: lstore 40
    //   575: goto +2052 -> 2627
    //   578: iconst_1
    //   579: goto +2723 -> 3302
    //   582: iconst_m1
    //   583: istore 33
    //   585: goto +1384 -> 1969
    //   588: aload 61
    //   590: iload 31
    //   592: ifle +1457 -> 2049
    //   595: goto +1316 -> 1911
    //   598: iinc 19 1
    //   601: goto +2640 -> 3241
    //   604: aload 52
    //   606: ifnull +706 -> 1312
    //   609: goto +61 -> 670
    //   612: aload 61
    //   614: aload 34
    //   616: invokevirtual 387	com/wowza/wms/medialist/MediaListRendition:setAudioCodecId	(Ljava/lang/String;)V
    //   619: goto +1530 -> 2149
    //   622: iconst_0
    //   623: goto +2598 -> 3221
    //   626: aload 34
    //   628: ifnull +1521 -> 2149
    //   631: goto -19 -> 612
    //   634: aload 46
    //   636: bipush -7
    //   638: bipush 29
    //   640: isub
    //   641: ldc_w 389
    //   644: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   647: invokeinterface 328 2 0
    //   652: checkcast 159	java/lang/String
    //   655: astore 35
    //   657: goto +1412 -> 2069
    //   660: lload 58
    //   662: lconst_0
    //   663: lcmp
    //   664: ifle -248 -> 416
    //   667: goto +1990 -> 2657
    //   670: aload 52
    //   672: invokestatic 354	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   675: istore 30
    //   677: goto +1480 -> 2157
    //   680: aload 34
    //   682: ifnonnull -509 -> 173
    //   685: goto +2585 -> 3270
    //   688: aload 56
    //   690: ifnonnull +1621 -> 2311
    //   693: goto +47 -> 740
    //   696: aload 61
    //   698: iload 28
    //   700: invokevirtual 392	com/wowza/wms/medialist/MediaListRendition:setBitrateAudio	(I)V
    //   703: goto -430 -> 273
    //   706: new 80	java/lang/StringBuilder
    //   709: dup
    //   710: invokespecial 81	java/lang/StringBuilder:<init>	()V
    //   713: aload 26
    //   715: invokevirtual 91	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   718: aload 56
    //   720: invokevirtual 203	java/lang/String:length	()I
    //   723: ifle +1093 -> 1816
    //   726: goto +1161 -> 1887
    //   729: goto +2709 -> 3438
    //   732: aload 49
    //   734: ifnonnull +807 -> 1541
    //   737: goto +812 -> 1549
    //   740: aload 46
    //   742: ldc_w 394
    //   745: bipush 37
    //   747: bipush -9
    //   749: isub
    //   750: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   753: invokeinterface 328 2 0
    //   758: checkcast 159	java/lang/String
    //   761: astore 56
    //   763: goto +1548 -> 2311
    //   766: aload 55
    //   768: ifnonnull +1403 -> 2171
    //   771: goto +353 -> 1124
    //   774: aload_0
    //   775: aload 21
    //   777: sipush 420
    //   780: bipush 89
    //   782: idiv
    //   783: ldc_w 396
    //   786: invokestatic 41	com/wowza/util/Base64:endsWith	(ILjava/lang/String;)Ljava/lang/String;
    //   789: invokespecial 322	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:a	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   792: astore 55
    //   794: aload 55
    //   796: ifnonnull -30 -> 766
    //   799: goto +2555 -> 3354
    //   802: goto +250 -> 1052
    //   805: iconst_0
    //   806: goto +1992 -> 2798
    //   809: iconst_1
    //   810: istore 31
    //   812: goto -407 -> 405
    //   815: aload 54
    //   817: invokestatic 354	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   820: istore 37
    //   822: goto +1346 -> 2168
    //   825: aload_0
    //   826: aload 21
    //   828: ldc_w 398
    //   831: bipush 32
    //   833: bipush 73
    //   835: swap
    //   836: iadd
    //   837: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   840: invokevirtual 257	com/wowza/wms/mediareader/smil/MediaListReaderSMIL:getAttributeCheckEmpty	(Lorg/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String;
    //   843: astore 53
    //   845: aload 53
    //   847: ifnull +1095 -> 1942
    //   850: goto +582 -> 1432
    //   853: iload 29
    //   855: ifgt -30 -> 825
    //   858: goto +1881 -> 2739
    //   861: aload 61
    //   863: aload 45
    //   865: invokevirtual 401	com/wowza/wms/medialist/MediaListRendition:setTitle	(Ljava/lang/String;)V
    //   868: goto +2139 -> 3007
    //   871: aload 50
    //   873: ifnonnull +2099 -> 2972
    //   876: goto +516 -> 1392
    //   879: astore 60
    //   881: ldc2_w 383
    //   884: lstore 58
    //   886: goto -226 -> 660
    //   889: iconst_m1
    //   890: istore 31
    //   892: goto -487 -> 405
    //   895: aload 11
    //   897: ldc_w 403
    //   900: sipush 568
    //   903: sipush 139
    //   906: idiv
    //   907: invokestatic 141	com/wowza/util/JSON:copyValueOf	(Ljava/lang/String;I)Ljava/lang/String;
    //   910: invokeinterface 216 2 0
    //   915: astore 17
    //   917: aload 17
    //   919: aload 9
    //   921: getstatic 222	javax/xml/xpath/XPathConstants:NODESET	Ljavax/xml/namespace/QName;
    //   924: invokeinterface 228 3 0
    //   929: checkcast 230	org/w3c/dom/NodeList
    //   932: astore 18
    //   934: aload 18
    //   936: ifnull +2502 -> 3438
    //   939: goto +418 -> 1357
    //   942: new 314	com/wowza/wms/medialist/MediaListRendition
    //   945: dup
    //   946: invokespecial 404	com/wowza/wms/medialist/MediaListRendition:<init>	()V
    //   949: astore 61
    //   951: aload 61
    //   953: aload 60
    //   955: invokevirtual 405	com/wowza/wms/medialist/MediaListRendition:setName	(Ljava/lang/String;)V
    //   958: aload 61
    //   960: iload 23
    //   962: invokevirtual 408	com/wowza/wms/medialist/MediaListRendition:setType	(I)V
    //   965: aload 61
    //   967: lload 38
    //   969: invokevirtual 412	com/wowza/wms/medialist/MediaListRendition:setPlayStart	(J)V
    //   972: aload 61
    //   974: lload 40
    //   976: invokevirtual 415	com/wowza/wms/medialist/MediaListRendition:setPlayDuration	(J)V
    //   979: aload 61
    //   981: lload 42
    //   983: invokevirtual 418	com/wowza/wms/medi
1 2 3

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd