Skip navigation links
oracle.security.xmlsec.util
Class Base64.EncodeOutputStream
java.lang.Object
java.io.OutputStream
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
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 |
Base64.EncodeOutputStream
public Base64.EncodeOutputStream(java.io.Writer wr)
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
Copyright © 2005, 2011 , Oracle. All rights reserved.