Home » jasperreports-3.0.0-project » org.w3c.tools.codec » [javadoc | source]
public class: Base64Encoder [javadoc | source]
BASE64 encoder implementation. This object takes as parameter an input stream and an output stream. It encodes the input stream, using the BASE64 encoding rules, as defined in MIME specification and emit the resulting data to the output stream.
Field Summary
 InputStream in     
 OutputStream out     
 boolean stringp     
 public Base64Encoder(String input) 
    Create a new Base64 encoder, to encode the given string.
    input - The String to be encoded.
 public Base64Encoder(InputStream in,
    OutputStream out) 
    Create a new Base64 encoder, encoding input to output.
    in - The input stream to be encoded.
    out - The output stream, to write encoded data to.
Method from org.w3c.tools.codec.Base64Encoder Summary:
main,   process,   processString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.w3c.tools.codec.Base64Encoder Detail:
 public static  void main(String[] args) 
    Testing the encoder. Run with one argument, prints the encoded version of it.
 public  void process() throws IOException 
    Process the data: encode the input stream to the output stream. This method runs through the input stream, encoding it to the output stream.
 public String processString() 
    Encode the content of this encoder, as a string. This methods encode the String content, that was provided at creation time, following the BASE64 rules, as specified in the rfc1521.