Title: Error message signing external content as FileInputStream

Hi,

I sign a XML document having an external content using java version 1.2.1. I pass the external content as a FileInputStream into the XMLSignatureInput constructor and I got on the error console the following message "Mark Suported but not used as reset". I checked the source code and I saw the following instruction into the method XMLSignatureInput.getResetableInputStream() that generates this error message and then the inputstream is converted into bytes.

if (_inputOctetStreamProxy.markSupported())
{
   System.err.println("Mark Suported but not used as reset");
}
bytes=JavaUtils.getBytesFromStream(_inputOctetStreamProxy);

Can somebody explain me why it is like that ? Why an error message is displayed ? Is it better to use a ByteArrayInputStream and in this case what about memory usage ?

Regards. Yvan Hess


Reply via email to