com.ibm.websphere.samples.asynchbeans.wstrader.applet
Class Utility

java.lang.Object
  extended by com.ibm.websphere.samples.asynchbeans.wstrader.applet.Utility

public class Utility
extends java.lang.Object

Various utility methods for the WebSphere Trader Applet client.


Constructor Summary
Utility()
           
 
Method Summary
 java.lang.String getLineFromInputStream(java.io.InputStreamReader isr)
          Retrieve a single line of text from teh InputStreamReader using an ASCII code of 10 for the end of line character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utility

public Utility()
Method Detail

getLineFromInputStream

public java.lang.String getLineFromInputStream(java.io.InputStreamReader isr)
                                        throws java.io.EOFException
Retrieve a single line of text from teh InputStreamReader using an ASCII code of 10 for the end of line character.

Parameters:
isr - the InputStreamReader object that is parsed for input.
Returns:
String the resulting line of text that is returned.
Throws:
java.io.EOFException - thrown when the end of the stream is encountered.