Base64OutputStream
Stay organized with collections
Save and categorize content based on your preferences.
An OutputStream that does Base64 encoding on the data written to
it, writing the resulting data to another OutputStream.
Inherited Field Summary
From class
java.io.FilterOutputStream
protected
OutputStream |
out |
|
Public Constructor Summary
|
Base64OutputStream(OutputStream out, int flags)
Performs Base64 encoding on the data written to the stream,
writing the encoded data to another OutputStream.
|
Public Method Summary
void
|
|
void
|
write(byte[] b, int off, int len)
|
void
|
|
Inherited Method Summary
From class
java.io.FilterOutputStream
void
|
close()
|
void
|
flush()
|
void
|
write(byte[] arg0)
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
void
|
write(int arg0)
|
From class
java.io.OutputStream
void
|
close()
|
void
|
flush()
|
void
|
write(byte[] arg0)
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
abstract
void
|
write(int arg0)
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
From interface
java.io.Closeable
From interface
java.io.Flushable
From interface
java.lang.AutoCloseable
Public Constructors
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 to |
flags |
bit flags for controlling the encoder; see the
constants in Base64
|
Public Methods
public
void
write
(byte[] b, int off, int len)
public
void
write
(int b)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eBase64OutputStream\u003c/code\u003e encodes data written to it in Base64 and writes the encoded data to another OutputStream.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for writing individual bytes, byte arrays, and closing the stream.\u003c/p\u003e\n"],["\u003cp\u003eThe encoding process is controlled by flags passed to the constructor, referencing the \u003ccode\u003eBase64\u003c/code\u003e class constants.\u003c/p\u003e\n"],["\u003cp\u003eInherits methods from \u003ccode\u003eFilterOutputStream\u003c/code\u003e, including \u003ccode\u003eclose\u003c/code\u003e, \u003ccode\u003eflush\u003c/code\u003e, and \u003ccode\u003ewrite\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThrows \u003ccode\u003eIOException\u003c/code\u003e for errors related to writing to the underlying output stream.\u003c/p\u003e\n"]]],[],null,[]]