Class NetWorker

java.lang.Object
  extended by javax.swing.SwingWorker<java.lang.String,java.lang.Void>
      extended by NetWorker
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.lang.String>, java.util.concurrent.RunnableFuture<java.lang.String>

public final class NetWorker
extends javax.swing.SwingWorker<java.lang.String,java.lang.Void>

Extends the class SwingWorker.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Field Summary
static ByteArray REQUESTTAGBYTEARR
           
static ByteArray RESPONSETAGBYTEARR
           
 
Constructor Summary
NetWorker(javax.swing.JTextField commandFieldin, javax.swing.JTextArea mainareain, javax.swing.JTextArea statusareain, javax.swing.JTextArea topareain, javax.swing.JTextArea registersareain, java.util.concurrent.atomic.AtomicBoolean executecommandin, java.lang.StringBuffer inputtextin, Serverinfo tsi, ByteArray bfkeyin, java.lang.String aliasin)
           
 
Method Summary
 java.lang.String doInBackground()
          This method calls wait() since wait() and notify() are faster than an infinite loop in a thread that polls and sleeps.
 void done()
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUESTTAGBYTEARR

public static final ByteArray REQUESTTAGBYTEARR

RESPONSETAGBYTEARR

public static final ByteArray RESPONSETAGBYTEARR
Constructor Detail

NetWorker

public NetWorker(javax.swing.JTextField commandFieldin,
                 javax.swing.JTextArea mainareain,
                 javax.swing.JTextArea statusareain,
                 javax.swing.JTextArea topareain,
                 javax.swing.JTextArea registersareain,
                 java.util.concurrent.atomic.AtomicBoolean executecommandin,
                 java.lang.StringBuffer inputtextin,
                 Serverinfo tsi,
                 ByteArray bfkeyin,
                 java.lang.String aliasin)
          throws java.security.NoSuchAlgorithmException,
                 javax.crypto.NoSuchPaddingException,
                 FeralcoreException,
                 java.io.FileNotFoundException,
                 java.net.SocketException,
                 java.security.InvalidKeyException,
                 java.net.UnknownHostException,
                 java.io.IOException,
                 java.io.UnsupportedEncodingException,
                 java.lang.InterruptedException,
                 java.lang.CloneNotSupportedException
Throws:
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
FeralcoreException
java.io.FileNotFoundException
java.net.SocketException
java.security.InvalidKeyException
java.net.UnknownHostException
java.io.IOException
java.io.UnsupportedEncodingException
java.lang.InterruptedException
java.lang.CloneNotSupportedException
Method Detail

doInBackground

public java.lang.String doInBackground()
This method calls wait() since wait() and notify() are faster than an infinite loop in a thread that polls and sleeps.

Specified by:
doInBackground in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>

done

public void done()
Overrides:
done in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>