com.iplanet.jato.util
Class Http64Decoder
java.lang.Object
|
+--sun.misc.CharacterDecoder
|
+--com.iplanet.jato.util.Http64Decoder
- public class Http64Decoder
- extends sun.misc.CharacterDecoder
This class decodes characters that were perviously encoded using a variant of
Base64 encoding. This encoding 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.
- Version:
- JATO/1.2.2 $Id: Http64Decoder.java,v 1.6 2002/03/16 03:26:38 todd Exp $
Method Summary |
protected int |
bytesPerAtom()
|
protected int |
bytesPerLine()
|
protected void |
decodeAtom(java.io.InputStream inStream,
java.io.OutputStream outStream,
int rem)
The signature of the decodeAtom() method change in JDK 1.4. |
protected void |
decodeAtom(java.io.PushbackInputStream inStream,
java.io.OutputStream outStream,
int rem)
The signature of the decodeAtom() method change in JDK 1.4. |
Methods inherited from class sun.misc.CharacterDecoder |
decodeBuffer, decodeBuffer, decodeBuffer, decodeBufferPrefix, decodeBufferSuffix, decodeLinePrefix, decodeLineSuffix, readFully |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Http64Decoder
public Http64Decoder()
- Default constructor
bytesPerAtom
protected int bytesPerAtom()
- Overrides:
bytesPerAtom
in class sun.misc.CharacterDecoder
bytesPerLine
protected int bytesPerLine()
- Overrides:
bytesPerLine
in class sun.misc.CharacterDecoder
decodeAtom
protected void decodeAtom(java.io.PushbackInputStream inStream,
java.io.OutputStream outStream,
int rem)
throws java.io.IOException
- The signature of the decodeAtom() method change in JDK 1.4. This method
reflects that change.
- Since:
- jato/1.2.1
decodeAtom
protected void decodeAtom(java.io.InputStream inStream,
java.io.OutputStream outStream,
int rem)
throws java.io.IOException
- The signature of the decodeAtom() method change in JDK 1.4. This method
reflects the original 1.3 version of the method.
- Overrides:
decodeAtom
in class sun.misc.CharacterDecoder