public class IOControl extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
IOControl.NetOutputStream |
Modifier and Type | Field and Description |
---|---|
private BufferedInputStream |
bis |
private IOControl.NetOutputStream |
nos |
private Socket |
socket |
static String |
SOCKET_SOTIMEOUT
This property allow to enable/disable SO_TIMEOUT with the specified
timeout in milliseconds.
|
private static int |
socketTimeOut
Enable/disable SO_TIMEOUT with the specified timeout in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
Socket |
getSocket() |
int |
readInt() |
Object |
readObject() |
void |
writeInt(int i) |
void |
writeObject(Object obj) |
public static final String SOCKET_SOTIMEOUT
private static int socketTimeOut
fr.dyade.aaa.jndi2.socketTimeOut
.
With this option set to a non-zero timeout, a read() call on the
InputStream associated with this Socket will block for only this amount
of time.private Socket socket
private BufferedInputStream bis
private IOControl.NetOutputStream nos
public IOControl(Socket socket) throws IOException
IOException
public Object readObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int readInt() throws IOException
IOException
public void writeObject(Object obj) throws IOException
IOException
public void writeInt(int i) throws IOException
IOException
public void close()
public final Socket getSocket()
Copyright © 2015 ScalAgent D.T.. All Rights Reserved.