Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要确定某个字符串是否在 PushbackInpuptStream 内,但在此操作之后我需要流指针位于同一点。这种流不支持标记,那么如何做到这一点?速度并不是一个真正的因素,因为这是一个低频操作,并且流永远不会很大。
只需读取数据,如果它不是您想要的,请将其推回。这就是 PushbackInputStream 的用途。