Isuue on pub.io:mark

Hi,

I am using pub.io:mark service.
The input to this service is from string to stream service.

The error:
The mark method is not supported by the supplied InputStream.

what might be the reason? any suggestions

Thanks
Kris

Are you using PSUtilities.stream:stringToStream? If so, the reason for the exception is that the stream class being used (java.io.StringBufferInputStream) by that service doesn’t support the mark feature.

The StringBufferInputStream class is deprecated (as of JDK 1.1). It doesn’t properly convert characters to bytes. As a result, you probably shouldn’t use the stringToStream service and should replace it with one of your own.

If you’re not using the PSUtilities service, what service are you using and what is the underlying class?