public class InternalSocket
extends java.net.Socket
コンストラクタ | 説明 |
---|---|
InternalSocket(int port) |
client side
|
InternalSocket(java.io.InputStream is,
java.io.OutputStream os) |
server side
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
void |
bind(java.net.SocketAddress endpoint) |
推奨されていません。
unsupported
|
void |
close() |
|
void |
connect(java.net.SocketAddress endpoint) |
推奨されていません。
unsupported
|
void |
connect(java.net.SocketAddress endpoint,
int timeout) |
推奨されていません。
unsupported
|
java.nio.channels.SocketChannel |
getChannel() |
推奨されていません。
unsupported
|
java.net.InetAddress |
getInetAddress() |
推奨されていません。
unsupported
|
java.io.InputStream |
getInputStream() |
|
boolean |
getKeepAlive() |
推奨されていません。
unsupported
|
java.net.InetAddress |
getLocalAddress() |
推奨されていません。
unsupported
|
int |
getLocalPort() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
java.net.SocketAddress |
getLocalSocketAddress() |
推奨されていません。
unsupported
|
boolean |
getOOBInline() |
推奨されていません。
unsupported
|
java.io.OutputStream |
getOutputStream() |
|
int |
getPort() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
int |
getReceiveBufferSize() |
推奨されていません。
unsupported
|
java.net.SocketAddress |
getRemoteSocketAddress() |
推奨されていません。
unsupported
|
boolean |
getReuseAddress() |
推奨されていません。
unsupported
|
int |
getSendBufferSize() |
推奨されていません。
unsupported
|
static java.net.Socket |
getSocket(java.lang.String host,
int port) |
Convenience method to return either a Socket or an InternalSocket
|
int |
getSoLinger() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
int |
getSoTimeout() |
Always returns 0, even if setSoTimeout() was called.
|
boolean |
getTcpNoDelay() |
推奨されていません。
unsupported
|
int |
getTrafficClass() |
推奨されていません。
unsupported
|
boolean |
isBound() |
推奨されていません。
unsupported
|
boolean |
isClosed() |
|
boolean |
isConnected() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
boolean |
isInputShutdown() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
boolean |
isOutputShutdown() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
void |
sendUrgentData(int data) |
推奨されていません。
unsupported
|
(package private) void |
setInputStream(java.io.InputStream is) |
|
void |
setKeepAlive(boolean on) |
推奨されていません。
unsupported
|
void |
setOOBInline(boolean on) |
推奨されていません。
unsupported
|
(package private) void |
setOutputStream(java.io.OutputStream os) |
|
void |
setReceiveBufferSize(int size) |
推奨されていません。
unsupported
|
void |
setReuseAddress(boolean on) |
推奨されていません。
unsupported
|
void |
setSendBufferSize(int size) |
推奨されていません。
unsupported
|
void |
setSoLinger(boolean on,
int linger) |
Does nothing as of 0.9.33, prior to that threw UnsupportedOperationException
|
void |
setSoTimeout(int timeout) |
Supported as of 0.9.34, if constructed with TimeoutPipedInputStream
and TimeoutPipedOutputStream.
|
void |
setTcpNoDelay(boolean on) |
推奨されていません。
unsupported
|
void |
setTrafficClass(int cize) |
推奨されていません。
unsupported
|
void |
shutdownInput() |
Supported as of 0.9.33, prior to that threw UnsupportedOperationException
|
void |
shutdownOutput() |
Flushes (as the Socket javadocs advise) and closes.
|
java.lang.String |
toString() |
InternalSocket(java.io.InputStream is, java.io.OutputStream os)
public InternalSocket(int port) throws java.io.IOException
port
- > 0java.io.IOException
public static java.net.Socket getSocket(java.lang.String host, int port) throws java.io.IOException
port
- > 0java.io.IOException
public java.io.InputStream getInputStream()
getInputStream
クラス内 java.net.Socket
public java.io.OutputStream getOutputStream()
getOutputStream
クラス内 java.net.Socket
void setInputStream(java.io.InputStream is)
void setOutputStream(java.io.OutputStream os)
public void close()
close
クラス内 java.net.Socket
public boolean isClosed()
isClosed
クラス内 java.net.Socket
public java.lang.String toString()
toString
クラス内 java.net.Socket
public void setSoTimeout(int timeout)
setSoTimeout
クラス内 java.net.Socket
TimeoutPipedInputStream
public int getSoTimeout()
getSoTimeout
クラス内 java.net.Socket
@Deprecated public void bind(java.net.SocketAddress endpoint)
bind
クラス内 java.net.Socket
@Deprecated public void connect(java.net.SocketAddress endpoint)
connect
クラス内 java.net.Socket
@Deprecated public void connect(java.net.SocketAddress endpoint, int timeout)
connect
クラス内 java.net.Socket
@Deprecated public java.nio.channels.SocketChannel getChannel()
getChannel
クラス内 java.net.Socket
@Deprecated public java.net.InetAddress getInetAddress()
getInetAddress
クラス内 java.net.Socket
@Deprecated public boolean getKeepAlive()
getKeepAlive
クラス内 java.net.Socket
@Deprecated public java.net.InetAddress getLocalAddress()
getLocalAddress
クラス内 java.net.Socket
public int getLocalPort()
getLocalPort
クラス内 java.net.Socket
@Deprecated public java.net.SocketAddress getLocalSocketAddress()
getLocalSocketAddress
クラス内 java.net.Socket
@Deprecated public boolean getOOBInline()
getOOBInline
クラス内 java.net.Socket
public int getPort()
getPort
クラス内 java.net.Socket
@Deprecated public int getReceiveBufferSize()
getReceiveBufferSize
クラス内 java.net.Socket
@Deprecated public java.net.SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress
クラス内 java.net.Socket
@Deprecated public boolean getReuseAddress()
getReuseAddress
クラス内 java.net.Socket
@Deprecated public int getSendBufferSize()
getSendBufferSize
クラス内 java.net.Socket
public int getSoLinger()
getSoLinger
クラス内 java.net.Socket
@Deprecated public boolean getTcpNoDelay()
getTcpNoDelay
クラス内 java.net.Socket
@Deprecated public int getTrafficClass()
getTrafficClass
クラス内 java.net.Socket
@Deprecated public boolean isBound()
isBound
クラス内 java.net.Socket
public boolean isConnected()
isConnected
クラス内 java.net.Socket
public boolean isInputShutdown()
isInputShutdown
クラス内 java.net.Socket
public boolean isOutputShutdown()
isOutputShutdown
クラス内 java.net.Socket
@Deprecated public void sendUrgentData(int data)
sendUrgentData
クラス内 java.net.Socket
@Deprecated public void setKeepAlive(boolean on)
setKeepAlive
クラス内 java.net.Socket
@Deprecated public void setOOBInline(boolean on)
setOOBInline
クラス内 java.net.Socket
@Deprecated public void setReceiveBufferSize(int size)
setReceiveBufferSize
クラス内 java.net.Socket
@Deprecated public void setReuseAddress(boolean on)
setReuseAddress
クラス内 java.net.Socket
@Deprecated public void setSendBufferSize(int size)
setSendBufferSize
クラス内 java.net.Socket
public void setSoLinger(boolean on, int linger)
setSoLinger
クラス内 java.net.Socket
@Deprecated public void setTcpNoDelay(boolean on)
setTcpNoDelay
クラス内 java.net.Socket
@Deprecated public void setTrafficClass(int cize)
setTrafficClass
クラス内 java.net.Socket
public void shutdownInput() throws java.io.IOException
shutdownInput
クラス内 java.net.Socket
java.io.IOException
public void shutdownOutput() throws java.io.IOException
shutdownOutput
クラス内 java.net.Socket
java.io.IOException