Interface ScxTCPSocket
- All Known Implementing Classes:
ClassicTCPSocket,PlainTCPSocket,TLSTCPSocket
public interface ScxTCPSocket
ScxTCPSocket
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()intread(byte[] bytes) intread(byte[] bytes, int offset, int length) byte[]read(int maxLength) 读取字节 当没有更多的数据时会抛出异常intread(ByteBuffer buffer) voidread(Path path, long offset, long length, OpenOption... options) voidread(Path path, OpenOption... options) voidwrite(byte[] bytes) voidwrite(byte[] bytes, int offset, int length) voidwrite(ByteBuffer buffer) voidvoid
-
Method Details
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
读取字节 当没有更多的数据时会抛出异常- Parameters:
maxLength- 最大长度- Returns:
- 读取的字节
- Throws:
IOException- 异常NoMoreDataException- 没有更多数据时抛出
-
close
- Throws:
IOException
-
isOpen
- Throws:
IOException
-
remoteAddress
- Throws:
IOException
-