org.brains2b.coffee.decode
Class Base64Decoder

java.lang.Object
  extended by org.brains2b.coffee.decode.Base64Decoder
All Implemented Interfaces:
Decoder

public class Base64Decoder
extends java.lang.Object
implements Decoder

Decode Base64 encoded text to binary

Version:
1.00 [07-12-2006]
Author:
dennis@brains2b.nl

Constructor Summary
Base64Decoder(java.lang.String fileName)
          Constructor
 
Method Summary
 void decodePiece(java.lang.String s)
          hand a piece of coded characters to the Decoder
 FileMessage getFileMessage()
          get the FileMessage with a reference to the decoded bytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Decoder

public Base64Decoder(java.lang.String fileName)
Constructor

Parameters:
fileName - String, fileName for the decoded bytes
Method Detail

decodePiece

public void decodePiece(java.lang.String s)
                 throws java.lang.Exception
Description copied from interface: Decoder
hand a piece of coded characters to the Decoder

Specified by:
decodePiece in interface Decoder
Parameters:
s - String, a piece or the complete encoded characters to decode
Throws:
java.lang.Exception
See Also:
Decoder.getFileMessage()

getFileMessage

public FileMessage getFileMessage()
                           throws java.lang.Exception
Description copied from interface: Decoder
get the FileMessage with a reference to the decoded bytes

Specified by:
getFileMessage in interface Decoder
Returns:
FileMessage the reference to the decoded bytes and possible file information
Throws:
java.lang.Exception