パッケージ jcifs.smb1.netbios
クラス NbtSocket
- java.lang.Object
-
- java.net.Socket
-
- jcifs.smb1.netbios.NbtSocket
-
- すべての実装されたインタフェース:
Closeable,AutoCloseable
public class NbtSocket extends Socket
Do not use this class. Writing to the OutputStream of this type of socket requires leaving a 4 byte prefix for the NBT header. IOW you must call write( buf, 4, len ). Calling write( buf, 0, len ) will generate an error.
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 NbtSocket()NbtSocket(NbtAddress address, int port)NbtSocket(NbtAddress address, int port, InetAddress localAddr, int localPort)NbtSocket(NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 voidclose()InputStreamgetInputStream()InetAddressgetLocalAddress()intgetLocalPort()NbtAddressgetNbtAddress()OutputStreamgetOutputStream()intgetPort()StringtoString()-
クラスから継承されたメソッド java.net.Socket
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalSocketAddress, getOOBInline, getOption, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions
-
-
-
-
コンストラクタの詳細
-
NbtSocket
public NbtSocket()
-
NbtSocket
public NbtSocket(NbtAddress address, int port) throws IOException
- 例外:
IOException
-
NbtSocket
public NbtSocket(NbtAddress address, int port, InetAddress localAddr, int localPort) throws IOException
- 例外:
IOException
-
NbtSocket
public NbtSocket(NbtAddress address, String calledName, int port, InetAddress localAddr, int localPort) throws IOException
- 例外:
IOException
-
-
メソッドの詳細
-
getNbtAddress
public NbtAddress getNbtAddress()
-
getInputStream
public InputStream getInputStream() throws IOException
- オーバーライド:
getInputStreamクラス内Socket- 例外:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- オーバーライド:
getOutputStreamクラス内Socket- 例外:
IOException
-
getLocalAddress
public InetAddress getLocalAddress()
- オーバーライド:
getLocalAddressクラス内Socket
-
getLocalPort
public int getLocalPort()
- オーバーライド:
getLocalPortクラス内Socket
-
close
public void close() throws IOException- 定義:
closeインタフェース内AutoCloseable- 定義:
closeインタフェース内Closeable- オーバーライド:
closeクラス内Socket- 例外:
IOException
-
-