Integration Server 10.5 | Built-In Services Reference Guide | IO Folder | Summary of Elements in this Folder | pub.io:mark
 
pub.io:mark
WmPublic. Marks the current position in the InputStream or reader object.
A subsequent call to pub.io:reset repositions this stream at the last marked position. Marking and respositioning the input stream allows subsequent service calls to re-read the same bytes.
Input Parameters
stream
java.io.InputStream Optional. The InputStream.
Note:
You can use either stream or reader to specify the input object. If both stream and reader input parameters are provided, then both the objects will be marked.
reader
java.io.Reader Optional. The reader object.
limit
String The maximum number of bytes that can be read before the mark position becomes invalid. If more than this number of bytes are read from the stream after the pub.io:mark service is invoked, the pub.io:reset service will have no effect.
Output Parameters
stream
java.io.InputStream Conditional. The InputStream. Returned only if the input parameter is stream.
reader
java.io.Reader Conditional. The reader object. Returned only if the input parameter is reader.
Usage Notes
If the InputStream does not support the mark operation, invoking this service has no effect.
Either of the optional input parameters, stream or reader, is required.