The MIME type detection methods that take an {@link InputStream} asan argument will never reads more than {@link #getMinLength()} bytesfrom the stream. Also the given stream is never {@link InputStream#close() closed}, {@link InputStream#mark(int) marked}, or {@link InputStream#reset() reset} by the methods. Thus a client canuse the {@link InputStream#markSupported() mark feature} of the stream(if available) to restore the stream back to the state it was before type detection if it wants to process the stream based on the detected type.
|
|
|
|
|
|
|
|
|
|
|
|