See the general contract of the mark method of InputStream.
mark
InputStream
the maximum limit of bytes that can be read before the mark position becomes invalid.