Used XInputStreamtoInputStreamAdapter