| com.sun.portal.util.Http64Encoder
Http64Encoder | public class Http64Encoder extends CharacterEncoder (Code) | | This class encodes characters using a variant of Base64 encoding that results
in an encoded string that doesn't need to be escaped for use in HTTP URLs.
Specifically, the following characters are remapped in this implementation:
Location Base64 Http64
-------- ------ ------
62 + -
63 / _
(pad) = $
The Base64 implementation relies on the sun.misc.* package
included with Sun's implementation of the Java Platform; there is no
guarantee that this implementation will be used in future versions of this
class.
author: Todd Fast, todd.fast@sun.com author: Mike Frisino, michael.frisino@sun.com version: JATO/1.2.2 $Id: Http64Encoder.java,v 1.1 2005/06/15 22:23:16 rt94277 Exp $ version: This class is copied from JATO 1.2.2 util package |
Http64Encoder | public Http64Encoder()(Code) | | Default constructor
|
bytesPerAtom | protected int bytesPerAtom()(Code) | | |
bytesPerLine | protected int bytesPerLine()(Code) | | |
encodeAtom | protected void encodeAtom(OutputStream outStream, byte data, int offset, int len) throws IOException(Code) | | enocodeAtom - Take three bytes of input and encode it as 4
printable characters. Note that if the length in len is less
than three is encodes either one or two '=' signs to indicate
padding characters.
|
|
|