|
CryptoPro JCP v 1.0. Public API. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectru.CryptoPro.JCP.tools.Decoder
This class defines the decoding half of character encoders and user for decode the cetrification request. A character decoder is an algorithim for transforming 8 bit binary data that has been encoded into text by a character encoder, back into original binary form. The character encoders, in general, have been structured around a central theme that binary data can be encoded into text that has the form: [Buffer Prefix] [Line Prefix][encoded data atoms][Line Suffix] [Buffer Suffix] Of course in the simplest encoding schemes, the buffer has no distinct prefix of suffix, however all have some fixed relationship between the text in an 'atom' and the binary data itself.
Constructor Summary | |
Decoder()
|
Method Summary | |
byte[] |
decodeBuffer(java.io.InputStream in)
Decode the contents of the inputstream into a buffer. |
void |
decodeBuffer(java.io.InputStream aStream,
java.io.OutputStream bStream)
Decode the text from the InputStream and write the decoded octets to the OutputStream. |
byte[] |
decodeBuffer(java.lang.String inputString)
Alternate decode interface that takes a String containing the encoded buffer and returns a byte array containing the data. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Decoder()
Method Detail |
public void decodeBuffer(java.io.InputStream aStream, java.io.OutputStream bStream) throws java.io.IOException
java.io.IOException
public byte[] decodeBuffer(java.lang.String inputString) throws java.io.IOException
sun.misc.CEFormatException
- An error has occured while decoding
java.io.IOException
public byte[] decodeBuffer(java.io.InputStream in) throws java.io.IOException
java.io.IOException
|
Copyright Crypto-Pro. All rights reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |