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.
熱點內容