|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
com.mucommander.io.base64.Base64OutputStream
public class Base64OutputStream
This OuputStream encodes supplied data to Base64 encoding and writes it to the underlying
OutputStream.
Base64Encoder| Constructor Summary | |
|---|---|
Base64OutputStream(java.io.OutputStream out,
boolean insertLineBreaks)
Creates a new Base64OutputStream using the underlying OutputStream to write the base64-encoded data to. |
|
| Method Summary | |
|---|---|
void |
close()
Writes padding if necessary and closes the underlying stream. |
void |
write(int i)
|
void |
writePadding()
Writes padding '=' characters to the underlying OutputStream if there currently is an
unfinished 3-byte group. |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64OutputStream(java.io.OutputStream out,
boolean insertLineBreaks)
out - the underlying OutputStream to write the base64-encoded data toinsertLineBreaks - if true, line breaks will be inserted after every 80 characters written| Method Detail |
|---|
public void writePadding()
throws java.io.IOException
OutputStream if there currently is an
unfinished 3-byte group. If it's not the case, then this method is a no-op.
java.io.IOException - if the padding characters could not be written to the underlying OutputStream.
public void write(int i)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard