[erlang-questions] Best way to interface Erlang with Java code

zabrane Mikael zabrane3@REDACTED
Thu Dec 10 21:13:56 CET 2009

2009/12/10 Jayson Vantuyl <jvantuyl@REDACTED>

> Is the Java program set to read one line at a time?  Otherwise, it may be
> blocking waiting for end-of-file, which Erlang never would generate (since
> it doesn't close STDIN unless you kill the port).

No no. The Java program doesnt block:

$ curl http://www.erlang.com  |  java my_java_program - | head -10

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="verify-v1"
content="1pHqGsV0Srki/2gpEWwJvoLvinghe6i9GUOkIk1P+0E=" />
<link REL="stylesheet" HREF="mainnew.css" TYPE="text/css">
<link REL="stylesheet" HREF="stainedglass.css" TYPE="text/css">
<meta name="DESCRIPTION"
content="telecom traffic online contains free online tools for assisting
global voice network professionals with network design and analysis.">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">


More information about the erlang-questions mailing list