Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » IOConsole inputStream read Hangging!
IOConsole inputStream read Hangging! [message #1369441] Tue, 20 May 2014 15:38
André Ramos is currently offline André Ramos
Messages: 8
Registered: April 2014
Junior Member
Hi!

My IOConsole keeps hangging in the read Mad , how can i solve it?

IOConsole consol = new IOConsole("Wazza Console",null);
ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[] { consol });
IOConsoleOutputStream out = consol.newOutputStream();
IOConsoleInputStream in = consol.getInputStream();
BufferedReader in2 = new BufferedReader(new InputStreamReader(in));
PrintWriter out2 = new PrintWriter(new OutputStreamWriter(out));
try
{
out2.println("HI!");
out2.flush();
in2.read(); //Hangging here
out.write("Pray Dude, Pray");

} catch (Exception e1) {
// TODO Auto-generated catch block
System.err.println("OOpps");
e1.printStackTrace();
}
Previous Topic:How to implement my own console?
Next Topic:Defining auto-start and Start Level during feature installation
Goto Forum:
  


Current Time: Wed Oct 22 23:13:30 GMT 2014

Powered by FUDForum. Page generated in 0.01499 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software