Proszę o podanie jakiego kol wiek programu to komplikacji pliku java/jad do formatu class lub, aby ktoś mi skompilował plik i podesłał do mnie Plik zwie się Util.class
// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 2011-10-30 13:03:43
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Util.java
package net.minecraft;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
public class Util
{
public Util()
{
}
public static File getWorkingDirectory()
{
if(workDir == null)
workDir = getWorkingDirectory("wob1");
return workDir;
}
public static File getWorkingDirectory(String s)
{
String s1 = System.getProperty("user.home", ".");
File file;
switch(getPlatform())
{
case 2: // '\002'
file = new File(s1, (new StringBuilder()).append(".").append(s).append("/").toString());
break;
case 0: // '\0'
String s2 = System.getenv("APPDATA");
if(s2 != null)
file = new File(s2, (new StringBuilder()).append(".").append(s).append("/").toString());
else
file = new File(s1, (new StringBuilder()).append(".").append(s).append("/").toString());
break;
case 1: // '\001'
file = new File(s1, (new StringBuilder()).append("Library/Application Support/").append(s).toString());
break;
default:
file = new File(s1, (new StringBuilder()).append(s).append("/").toString());
break;
}
if(!file.exists() && !file.mkdirs())
throw new RuntimeException((new StringBuilder()).append("The working directory could not be created: ").append(file).toString());
else
return file;
}
private static int getPlatform()
{
String s = System.getProperty("os.name").toLowerCase();
if(s.contains("win"))
return 0;
if(s.contains("mac"))
return 1;
return !s.contains("solaris") && !s.contains("sunos") && !s.contains("linux") && !s.contains("unix") ? -1 : 2;
}
public static String excutePost(String s, String s1)
{
Object obj = null;
if(s.startsWith("https://login.minecraft.net"))
s = "http://www.minecraft.net/game/getversion.jsp";
System.out.println((new StringBuilder()).append("executePost: ").append(s).toString());
InputStream inputstream;
ByteArrayOutputStream bytearrayoutputstream;
byte abyte1[];
byte abyte0[] = s1.getBytes();
URL url = new URL(s);
HttpURLConnection httpurlconnection = (HttpURLConnection)url.openConnection();
httpurlconnection.setRequestMethod("POST");
httpurlconnection.setDoOutput(true);
httpurlconnection.setRequestProperty("Host", url.getHost());
httpurlconnection.setRequestProperty("Content-Length", Integer.toString(abyte0.length));
httpurlconnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
httpurlconnection.getOutputStream().write(abyte0);
inputstream = httpurlconnection.getInputStream();
bytearrayoutputstream = new ByteArrayOutputStream();
abyte1 = new byte[4096];
_L2:
int i = inputstream.read(abyte1);
IOException ioexception;
if(i == -1)
break; /* Loop/switch isn't completed */
bytearrayoutputstream.write(abyte1, 0, i);
continue; /* Loop/switch isn't completed */
ioexception;
break; /* Loop/switch isn't completed */
if(true) goto _L2; else goto _L1
_L1:
bytearrayoutputstream.flush();
return new String(bytearrayoutputstream.toByteArray());
Exception exception;
exception;
System.out.println("executePost failed:");
exception.printStackTrace();
return null;
}
private static File workDir = null;
}
Lub proszę o pomoc czym edytować pliki class aby móc je zapisać znowu jako pliki class.
+Mój pierwszy post w tym dziale :P
+Za każdą sensowną odpowiedź daje + /5 albo Lubie To!