com.empireclassic.Remote
Class EmpireStreamReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by com.empireclassic.Remote.EmpireStreamReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class EmpireStreamReader
extends java.io.InputStreamReader

This class reads a response from the server, translating an IOException into an Error.

Author:
chas

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
EmpireStreamReader(java.io.InputStream in)
           
 
Method Summary
 java.lang.String readResponse()
          Read a server response to a command, figuring out when the server is done sending, and translating IOException into Error
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmpireStreamReader

public EmpireStreamReader(java.io.InputStream in)
Parameters:
in -
Method Detail

readResponse

public java.lang.String readResponse()
Read a server response to a command, figuring out when the server is done sending, and translating IOException into Error

Returns:
The server response, usually multi-line