Find Jobs
Hire Freelancers

Convert Java Code to Python

$100-400 USD

En curso
Publicado hace más de 8 años

$100-400 USD

Pagado a la entrega
I need this code to be converted to Python: import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; import [login to view URL]; public class RuntimeExec { public StreamWrapper getStreamWrapper(InputStream is, String type){ return new StreamWrapper(is, type); } private class StreamWrapper extends Thread { InputStream is = null; String type = null; String message = null; public String getMessage() { return message; } StreamWrapper(InputStream is, String type) { [login to view URL] = is; [login to view URL] = type; } public void run() { try { BufferedReader br = new BufferedReader(new InputStreamReader(is)); StringBuffer buffer = new StringBuffer(); String line = null; while ( (line = [login to view URL]()) != null) { [login to view URL](line);//.append("\n"); } message = [login to view URL](); } catch (IOException ioe) { [login to view URL](); } } } // this is where the action is public static void main(String[] args) { Runtime rt = [login to view URL](); RuntimeExec rte = new RuntimeExec(); StreamWrapper error, output; try { BufferedReader bufferedReader = new BufferedReader(new FileReader("[login to view URL]")); for(String line; (line = [login to view URL]()) != null;) { /*String x = "http [login to view URL] 8080"; */ Process proc = [login to view URL](new String[]{"bash","-c", "/root/carbonator-master/[login to view URL] " + line}); error = [login to view URL]([login to view URL](), "ERROR"); output = [login to view URL]([login to view URL](), "OUTPUT"); int exitVal = 0; [login to view URL](); [login to view URL](); [login to view URL](3000); [login to view URL](3000); exitVal = [login to view URL](); [login to view URL]("Output: "+output.message+"\nError: "+[login to view URL]); } } catch (IOException e) { [login to view URL](); } catch (InterruptedException e) { [login to view URL](); } } }
ID del proyecto: 9267322

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I have over 7 years of experience with Java and Python and can easily convert this for you within a day or 2. I can also document the code and provide you a third solution if you wish in C#, VC++ or even VB for extended service/support.
$111 USD en 2 días
0,0 (0 comentarios)
0,0
0,0
4 freelancers están ofertando un promedio de $147 USD por este trabajo
Avatar del usuario
Hello, Before you select a part time developer from here, take a look at fugacode.com. If you like what you see, contact us. That's all. "Why hire freelancers? when you can hire professional developers for the same cost" Regards, FUGACODE Team
$263 USD en 3 días
4,7 (15 comentarios)
6,0
6,0
Avatar del usuario
一个有效的提议尚未被提供
$100 USD en 1 día
5,0 (4 comentarios)
2,1
2,1
Avatar del usuario
Having read the code, it seems reasonably straightforward. I am confident with both java and python. Thanks for the quick response
$100 USD en 4 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi I m a java and python dev. I can do job in 5 days (I m working full time) let me know if I can help.
$277 USD en 5 días
0,0 (0 comentarios)
3,2
3,2

Sobre este cliente

Bandera de UNITED STATES
Tucson, United States
4,8
15
Forma de pago verificada
Miembro desde ene 8, 2016

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.