index f71532e8b97937cc2473f0b7927a78c7d8539bc8..509c67d6d80f7fe7ae94b60a7cfbb294a31c8ec5 100644 (file)
//# B A S E 6 4 O U T P U T S T R E A M
//#########################################################################
-static char *base64encode =
+static char const *base64encode =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
/**
* Writes the specified byte to this output stream.
*/
-void Base64OutputStream::put(XMLCh ch)
+int Base64OutputStream::put(XMLCh ch)
{
if (closed)
{
//probably throw an exception here
- return;
+ return -1;
}
outBuf <<= 8;
bitCount = 0;
outBuf = 0L;
}
+
+ return 1;
}