Skip navigation links

Oracle Security Developer Tools XML Security Java API Reference
11g (11.1.1)

E10680-02


oracle.security.xmlsec.util
Class Base64.EncodeOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by oracle.security.xmlsec.util.Base64.EncodeOutputStream

All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
Base64

public static class Base64.EncodeOutputStream
extends java.io.OutputStream

Encodes an OutputStream into a String. Instead of encoding all at once, it encodes on each write operation, keeping the temporary result in a StringBuider; Use toString to get the final Base64 encoded string


Constructor Summary
Base64.EncodeOutputStream(java.io.Writer wr)
           

 

Method Summary
 void close()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           

 

Methods inherited from class java.io.OutputStream
flush, write

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Base64.EncodeOutputStream

public Base64.EncodeOutputStream(java.io.Writer wr)

Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

Skip navigation links

Oracle Security Developer Tools XML Security Java API Reference
11g (11.1.1)

E10680-02


Copyright © 2005, 2009, Oracle. All rights reserved.