| java.lang.Object |
| ↳ |
java.io.OutputStream |
| |
↳ |
java.io.FilterOutputStream |
| |
|
↳ |
com.google.code.com.sun.mail.util.UUEncoderStream |
Class Overview
This class implements a UUEncoder. It is implemented as
a FilterOutputStream, so one can just wrap this class around
any output stream and write bytes into this filter. The Encoding
is done as the bytes are written out.
Summary
|
[Expand]
Inherited Fields |
From class
java.io.FilterOutputStream
|
protected
OutputStream |
out |
|
|
| Public Constructors |
|
|
UUEncoderStream(OutputStream out)
Create a UUencoder that encodes the specified input stream
|
|
|
UUEncoderStream(OutputStream out, String name)
Create a UUencoder that encodes the specified input stream
|
|
|
UUEncoderStream(OutputStream out, String name, int mode)
Create a UUencoder that encodes the specified input stream
|
| Public Methods |
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
setNameMode(String name, int mode)
Set up the buffer name and permission mode.
|
|
void
|
write(byte[] b, int off, int len)
|
|
void
|
write(byte[] data)
|
|
void
|
write(int c)
|
|
[Expand]
Inherited Methods |
From class
java.io.FilterOutputStream
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
|
void
|
write(byte[] arg0)
|
|
void
|
write(int arg0)
|
|
From class
java.io.OutputStream
|
void
|
close()
|
|
void
|
flush()
|
|
void
|
write(byte[] arg0, int arg1, int arg2)
|
|
void
|
write(byte[] arg0)
|
|
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()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
java.io.Closeable
|
From interface
java.io.Flushable
|
Fields
private
boolean
wrotePrefix
Public Constructors
public
UUEncoderStream
(OutputStream out)
Create a UUencoder that encodes the specified input stream
public
UUEncoderStream
(OutputStream out, String name)
Create a UUencoder that encodes the specified input stream
Parameters
| out
| The output stream |
| name
| Specifies a name for the encoded buffer
|
public
UUEncoderStream
(OutputStream out, String name, int mode)
Create a UUencoder that encodes the specified input stream
Parameters
| out
| The output stream |
| name
| Specifies a name for the encoded buffer |
| mode
| Specifies permission mode for the encoded buffer
|
Public Methods
public
void
setNameMode
(String name, int mode)
Set up the buffer name and permission mode.
This method has any effect only if it is invoked before
you start writing into the output stream
public
void
write
(byte[] b, int off, int len)
public
void
write
(byte[] data)
public
void
write
(int c)