home *** CD-ROM | disk | FTP | other *** search
- package lotus.notes.addins;
-
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- import java.io.PrintWriter;
- import java.net.Socket;
-
- public class SocketSession extends Thread {
- private Socket socket;
- // $FF: renamed from: in java.io.BufferedReader
- private BufferedReader field_0;
- private PrintWriter out;
- private static final String CRLF = "\r\n";
-
- public void start(Socket var1) {
- this.socket = var1;
-
- try {
- this.field_0 = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));
- this.out = new PrintWriter(this.socket.getOutputStream());
- } catch (IOException var4) {
- try {
- this.socket.close();
- } catch (IOException var3) {
- }
-
- System.err.println(var4);
- return;
- }
-
- ((Thread)this).start();
- }
-
- public void close() throws IOException {
- this.socket.close();
- }
-
- public String readLine() throws IOException {
- return this.field_0.readLine();
- }
-
- public void println(String var1) {
- this.out.print(var1);
- this.out.print("\r\n");
- this.out.flush();
- }
- }
-