Package net.sf.saxon.query
Class InputStreamMarker
java.lang.Object
net.sf.saxon.query.InputStreamMarker
Allows the position of an input stream to be marked and reset.
This class provides an abstraction that can be mapped to the different
ways of doing this on Java and .NET
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamMarker
(InputStream stream) Create anInputStreamMarker
for a supplied input stream -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStream
ensureMarkSupported
(InputStream stream) Return this stream if its position can be marked, or an enclosing Stream if notboolean
void
mark
(int readLimit) void
reset()
-
Constructor Details
-
InputStreamMarker
Create anInputStreamMarker
for a supplied input stream- Parameters:
stream
- the supplied input stream
-
-
Method Details
-
ensureMarkSupported
Return this stream if its position can be marked, or an enclosing Stream if not- Parameters:
stream
- the supplied stream- Returns:
- either this stream if it is markable, or an equivalent markable stream if not
-
isMarkSupported
public boolean isMarkSupported() -
mark
public void mark(int readLimit) -
reset
- Throws:
IOException
-