Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sdmlib.models.taskflows;
 
 import java.net.Socket;
 
 class SocketReader extends Thread
{
   
   public SocketReader(SocketThread socketThreadSocket connection)
   {
      this. = socketThread;
      this. = connection;
   }
   @Override
   public void run()
   {
      try
      {
         InputStream byteIn = .getInputStream();
         InputStreamReader readerIn = new InputStreamReader(byteIn);
         BufferedReader in = new BufferedReader(
         readerIn);
         String line = "";
         while (line != null)
         {
            line = in.readLine();
            SDMTaskWrap sdmTaskWrap = new SDMTaskWrap(thisline);
            // if (this.socketThread.defaultTargetThread != null &&
            // this.socketThread.defaultTargetThread instanceof Display)
            // {
            // ((Display)
            // this.socketThread.defaultTargetThread).asyncExec(sdmTaskWrap);
            // }
            // else
            if (this.. != null
               && this.. instanceof SDMThread)
            {
               ((SDMThreadthis..)
                  .enqueueTask(sdmTaskWrap);
            }
            else
            {
               sdmTaskWrap.run();
            }
         }
      }
      catch (IOException e)
      {
         ..println("Socket has been closed");
      }
   }
New to GrepCode? Check out our FAQ X