Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as Java by proud_anon ( 16 years ago )
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
public final class b
implements Runnable
{
private HttpConnection jdField_a_of_type_JavaxMicroeditionIoHttpConnection = null;
private main jdField_a_of_type_Main;
private InputStream jdField_a_of_type_JavaIoInputStream = null;
private byte[] jdField_a_of_type_ArrayOfByte = new byte[15000];
private String jdField_a_of_type_JavaLangString;
private String b = "";
public b(main parammain)
{
this.jdField_a_of_type_Main = parammain;
}
private void a()
{
this.b = "";
this.jdField_a_of_type_JavaLangString = "";
this.jdField_a_of_type_ArrayOfByte = new byte[15000];
Object localObject;
try
{
this.jdField_a_of_type_JavaIoInputStream.read(this.jdField_a_of_type_ArrayOfByte);
this.jdField_a_of_type_JavaLangString = new String(this.jdField_a_of_type_ArrayOfByte, "UTF-8");
System.out.println(this.jdField_a_of_type_JavaLangString);
for (int i = 0; !("" + this.jdField_a_of_type_JavaLangString.charAt(i).equals("%")); ++i)
this.b += this.jdField_a_of_type_JavaLangString.charAt(i);
}
catch (IOException localIOException)
{
(localObject = localIOException).printStackTrace();
}
String str = this.b;
(localObject = this.jdField_a_of_type_Main).jdField_a_of_type_JavaxMicroeditionLcduiCommand = new Command("назад", 2, 0);
((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiForm = new Form(localObject.jdField_a_of_type_ArrayOfJavaLangString[localObject.jdField_a_of_type_Int]);
((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiForm.append(str);
((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiForm.addCommand(((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiCommand);
((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiForm.setCommandListener((CommandListener)localObject);
((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiDisplay.setCurrent(((main)localObject).jdField_a_of_type_JavaxMicroeditionLcduiForm);
}
public final void run()
{
try
{
this.jdField_a_of_type_JavaxMicroeditionIoHttpConnection = ((HttpConnection)Connector.open(this.jdField_a_of_type_Main.jdField_a_of_type_JavaLangString + "?ch=" + this.jdField_a_of_type_Main.jdField_a_of_type_Int, 3, true));
this.jdField_a_of_type_JavaIoInputStream = this.jdField_a_of_type_JavaxMicroeditionIoHttpConnection.openInputStream();
a();
return;
}
catch (IOException localIOException2)
{
IOException localIOException1;
(localIOException1 = localIOException2).printStackTrace();
}
}
}
Revise this Paste