public class PacketChannel extends Object implements Channel
| Constructor and Description |
|---|
PacketChannel(Socket socket) |
PacketChannel(String hostname,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticationComplete() |
void |
close() |
ByteArrayInputStream |
getInputStream() |
ByteArrayOutputStream |
getOutputStream() |
boolean |
isOpen() |
boolean |
isSSL() |
byte[] |
read() |
void |
upgradeToSSL(SSLSocketFactory sslSocketFactory,
HostnameVerifier hostnameVerifier) |
void |
write(Command command) |
public PacketChannel(String hostname, int port) throws IOException
IOExceptionpublic PacketChannel(Socket socket) throws IOException
IOExceptionpublic ByteArrayInputStream getInputStream()
public ByteArrayOutputStream getOutputStream()
public void authenticationComplete()
public byte[] read()
throws IOException
IOExceptionpublic void write(Command command) throws IOException
IOExceptionpublic void upgradeToSSL(SSLSocketFactory sslSocketFactory, HostnameVerifier hostnameVerifier) throws IOException
IOExceptionpublic boolean isSSL()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2020. All rights reserved.