javasocket清空缓存
发布时间: 2023-07-23 19:40:30
⑴ java Socket如何清空接收缓冲区的内容
java.io.InputStream
int available()Returns an estimate of the number of bytes that can be read (or
skipped over) from this input stream without blocking by the next
invocation of a method for this input stream.
skip(long n)Skips over and discards n bytes of data from this input
stream.
热点内容