|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.eways.batchext.SocksChain
public class SocksChain
This class implements a SOCKS chain. Socks A ==> Socks B ==> Socks C ==> ... ==> Socks Z.
| Constructor Summary | |
|---|---|
SocksChain()
Constructor. |
|
SocksChain(Socks[] socksList)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(Socks socks)
Appends the specified SOCKS object to the end of the current chain. |
int |
chainSize()
Returns the number of SOCKS objects in this SOCKS chain. |
Socks |
get(int index)
Returns the SOCKS object at the specified position in the current chain. |
static void |
main(java.lang.String[] args)
Used to do stand-alone testing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocksChain(Socks[] socksList)
throws SocksException
socksList - A list of SOCKS objects.
SocksException - If some error occurs.public SocksChain()
| Method Detail |
|---|
public boolean add(Socks socks)
throws SocksException
socks - A SOCKS object.
SocksException - If some error occurs.public int chainSize()
public Socks get(int index)
index - The position of SOCKS object.
public static void main(java.lang.String[] args)
args - Command-line parameters.
|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||