add some code to Base64OutputStream class

add some code to Base64OutputStream class