CAMEL-6597 polish the code of CamelOutputStream
 CAMEL-6597 polish the code of CamelOutputStream