public class TCPObjectSocket extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
TCPObjectSocket(Socket socket,
FSTConfiguration conf) |
TCPObjectSocket(String host,
int port) |
TCPObjectSocket(String host,
int port,
FSTConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
FSTConfiguration |
getConf() |
InputStream |
getIn()
enables reading raw bytes from socket
|
Throwable |
getLastError() |
Socket |
getSocket() |
boolean |
isClosed() |
boolean |
isStopped() |
Object |
readObject() |
void |
setConf(FSTConfiguration conf) |
void |
setLastError(Throwable ex) |
void |
writeObject(Object toWrite) |
public TCPObjectSocket(String host, int port) throws IOException
IOExceptionpublic TCPObjectSocket(String host, int port, FSTConfiguration conf) throws IOException
IOExceptionpublic TCPObjectSocket(Socket socket, FSTConfiguration conf) throws IOException
IOExceptionpublic boolean isStopped()
public boolean isClosed()
public InputStream getIn()
public void flush()
throws IOException
IOExceptionpublic void setLastError(Throwable ex)
public Throwable getLastError()
public void close()
throws IOException
IOExceptionpublic Socket getSocket()
public FSTConfiguration getConf()
public void setConf(FSTConfiguration conf)
Copyright © 2015. All rights reserved.