public interface Connection
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
关闭连接
|
Charset |
getCharset()
获取字符集
|
InputStream |
getInputStream()
获取输入流
|
OutputStream |
getOutputStream()
获取输出流
|
boolean |
isClosed()
连接是否关闭
|
boolean |
isValid()
测试连接是否有效
|
void close()
boolean isClosed()
boolean isValid()
OutputStream getOutputStream() throws IOException
IOExceptionInputStream getInputStream() throws IOException
IOException - 获取输入流错误Charset getCharset()
Copyright © 2018. All rights reserved.