FileTypeUtil.getType 为什么不在方法内部还原流指针? #2331
Answered
by
looly
HakureiMarisa
asked this question in
Q&A
-
如issues所述,既然方法内部会读取28个字节,为什么判断好后不还原呢,让调用者自己mark、reset? |
Beta Was this translation helpful? Give feedback.
Answered by
looly
May 18, 2022
Replies: 1 comment
-
因为你无法确定用户提供的流是否支持mark和reset,只能由用户来操作了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HakureiMarisa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为你无法确定用户提供的流是否支持mark和reset,只能由用户来操作了。