Package org.apache.ws.commons.util
Class Base64.EncoderOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.ws.commons.util.Base64.EncoderOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- Base64
public static class Base64.EncoderOutputStream extends OutputStream
AnOutputStream, which is writing to the givenBase64.Encoder.
-
-
Constructor Summary
Constructors Constructor Description EncoderOutputStream(Base64.Encoder pEncoder)Creates a new instance, which is creating output using the givenBase64.Encoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(byte[] pBuffer, int pOffset, int pLen)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
-
-
-
Constructor Detail
-
EncoderOutputStream
public EncoderOutputStream(Base64.Encoder pEncoder)
Creates a new instance, which is creating output using the givenBase64.Encoder.- Parameters:
pEncoder- The base64 encoder being used.
-
-
Method Detail
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] pBuffer, int pOffset, int pLen) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-