com.arcao.geocaching.api.util
Class Base64OutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.arcao.geocaching.api.util.Base64OutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class Base64OutputStream
- extends FilterOutputStream
An OutputStream that does Base64 encoding on the data written to
it, writing the resulting data to another OutputStream.
|
Constructor Summary |
Base64OutputStream(OutputStream out,
int flags)
Performs Base64 encoding on the data written to the stream,
writing the encoded data to another OutputStream. |
Base64OutputStream(OutputStream out,
int flags,
boolean encode)
Performs Base64 encoding or decoding on the data written to the
stream, writing the encoded/decoded data to another
OutputStream. |
|
Method Summary |
void |
close()
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base64OutputStream
public Base64OutputStream(OutputStream out,
int flags)
- Performs Base64 encoding on the data written to the stream,
writing the encoded data to another OutputStream.
- Parameters:
out - the OutputStream to write the encoded data toflags - bit flags for controlling the encoder; see the
constants in Base64
Base64OutputStream
public Base64OutputStream(OutputStream out,
int flags,
boolean encode)
- Performs Base64 encoding or decoding on the data written to the
stream, writing the encoded/decoded data to another
OutputStream.
- Parameters:
out - the OutputStream to write the encoded data toflags - bit flags for controlling the encoder; see the
constants in Base64encode - true to encode, false to decode
write
public void write(int b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterOutputStream
- Throws:
IOException
Copyright © 2012. All Rights Reserved.