问题描述
破坏管道异常的含义是什么时候会发生什么?
what is the meaning of broken pipe exception and when it will come?
推荐答案
管道是数据流,通常从文件或网络套接字读取数据。当该管道从另一端突然关闭时,会发生破裂的管道。对于flie,这可能是文件安装在已断开连接的光盘或远程网络上。对于网络套接字,可能是网络被拔掉或者另一端的进程崩溃。
A pipe is a data stream, typically data being read from a file or from a network socket. A broken pipe occurs when this pipe is suddenly closed from the other end. For a flie, this could be if the file is mounted on a disc or a remote network which has become disconnected. For a network socket, it could be if the network gets unplugged or the process on the other end crashes.
在Java中,没有 BrokenPipeException
具体而言。这种类型的错误将被包含在一个不同的异常中,例如 SocketException
或 IOException
。
In Java, there is no BrokenPipeException
specifically. This type of error will be found wrapped in a different exception, such as a SocketException
or IOException
.
这篇关于Broken pipe Exception是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!