org.apache.ws.commons.util
Class Base64.EncoderOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.ws.commons.util.Base64.EncoderOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
Base64

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

An OutputStream, which is writing to the given Base64.Encoder.


Constructor Summary
Base64.EncoderOutputStream(Base64.Encoder pEncoder)
          Creates a new instance, which is creating output using the given Base64.Encoder.
 
Method Summary
 void close()
           
 void write(byte[] pBuffer, int pOffset, int pLen)
           
 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.EncoderOutputStream

public Base64.EncoderOutputStream(Base64.Encoder pEncoder)
Creates a new instance, which is creating output using the given Base64.Encoder.

Parameters:
pEncoder - The base64 encoder being used.
Method Detail

write

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

write

public void write(byte[] pBuffer,
                  int pOffset,
                  int pLen)
           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


Copyright 2005-2005-2006 Apache Software Foundation. All Rights Reserved.