com.jakewharton.pingdom.util
Class Base64.OutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.jakewharton.pingdom.util.Base64.OutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
Base64

public static class Base64.OutputStream
extends FilterOutputStream

The Class OutputStream.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
Base64.OutputStream(OutputStream out)
          Instantiates a new output stream.
Base64.OutputStream(OutputStream out, int options)
          Instantiates a new output stream.
 
Method Summary
 void close()
           
 void flushBase64()
          Flush base64.
 void resumeEncoding()
          Resume encoding.
 void suspendEncoding()
          Suspend encoding.
 void write(byte[] theBytes, int off, int len)
           
 void write(int theByte)
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64.OutputStream

public Base64.OutputStream(OutputStream out)
Instantiates a new output stream.

Parameters:
out - the out

Base64.OutputStream

public Base64.OutputStream(OutputStream out,
                           int options)
Instantiates a new output stream.

Parameters:
out - the out
options - the options
Method Detail

write

public void write(int theByte)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

write

public void write(byte[] theBytes,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

flushBase64

public void flushBase64()
                 throws IOException
Flush base64.

Throws:
IOException - Signals that an I/O exception has occurred.

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterOutputStream
Throws:
IOException

suspendEncoding

public void suspendEncoding()
                     throws IOException
Suspend encoding.

Throws:
IOException - Signals that an I/O exception has occurred.

resumeEncoding

public void resumeEncoding()
Resume encoding.



Copyright © 2011 Jake Wharton. All Rights Reserved.