public class InputStreamCloner
lets many folks read from the same
input streams without having to rewind them.
Bug13424618: Added special handling for PEMInputStream.
It's a bit of a hack, but the only use of this class is
to pass keys/certs through SSLClientInfo, and we need to
preserve PEMInputStream's type and the PEM header info
it carries in addition to the input stream itself.