Class TLSTCPSocket
java.lang.Object
cool.scx.net.TLSTCPSocket
- All Implemented Interfaces:
ScxTCPSocket
-
Constructor Summary
Constructors -
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) voidvoidwrite(byte[] bytes) voidwrite(byte[] bytes, int offset, int length) voidwrite(ByteBuffer buffer) voidvoid
-
Constructor Details
-
TLSTCPSocket
-
-
Method Details
-
startHandshake
- Throws:
IOException
-
decodeDataSupplier
-
write
- Specified by:
writein interfaceScxTCPSocket- Throws:
IOException
-
write
- Specified by:
writein interfaceScxTCPSocket- Throws:
IOException
-
write
- Specified by:
writein interfaceScxTCPSocket- Throws:
IOException
-
write
- Specified by:
writein interfaceScxTCPSocket- Throws:
IOException
-
write
- Specified by:
writein interfaceScxTCPSocket- Throws:
IOException
-
read
- Specified by:
readin interfaceScxTCPSocket- Throws:
IOException
-
read
- Specified by:
readin interfaceScxTCPSocket- Throws:
IOException
-
read
- Specified by:
readin interfaceScxTCPSocket- Throws:
IOException
-
read
- Specified by:
readin interfaceScxTCPSocket- Throws:
IOException
-
read
- Specified by:
readin interfaceScxTCPSocket- Throws:
IOException
-
read
Description copied from interface:ScxTCPSocket读取字节 当没有更多的数据时会抛出异常- Specified by:
readin interfaceScxTCPSocket- Parameters:
maxLength- 最大长度- Returns:
- 读取的字节
- Throws:
IOException- 异常NoMoreDataException- 没有更多数据时抛出
-
close
- Specified by:
closein interfaceScxTCPSocket- Throws:
IOException
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceScxTCPSocket
-
remoteAddress
- Specified by:
remoteAddressin interfaceScxTCPSocket- Throws:
IOException
-