public class InputStreamHelper extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isMarkSupported(InputStream is)
Tests if this input stream supports the
mark and
reset methods. |
static void |
reset(InputStream is)
Reset input stream
|
public static void reset(InputStream is) throws IOException
IOException
public static boolean isMarkSupported(InputStream is)
mark
and
reset
methods. Whether or not mark
and
reset
are supported is an invariant property of a
particular input stream instance. The markSupported
method
of InputStream
returns false
.true
if this stream instance supports the mark
and reset methods; false
otherwise.InputStream.mark(int)
,
InputStream.reset()
Copyright © 2019. All rights reserved.