com.sun.mail.util
类 UUEncoderStream

java.lang.Object
  继承者 java.io.OutputStream
      继承者 java.io.FilterOutputStream
          继承者 com.sun.mail.util.UUEncoderStream
所有已实现的接口:
Closeable, Flushable

public class UUEncoderStream
extends FilterOutputStream

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.

作者:
John Mani

字段摘要
protected  int mode
           
protected  String name
           
 
从类 java.io.FilterOutputStream 继承的字段
out
 
构造方法摘要
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
 
方法摘要
 void close()
           
 void flush()
           
 void setNameMode(String name, int mode)
          Set up the buffer name and permission mode.
 void write(byte[] data)
           
 void write(byte[] b, int off, int len)
           
 void write(int c)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

name

protected String name

mode

protected int mode
构造方法详细信息

UUEncoderStream

public UUEncoderStream(OutputStream out)
Create a UUencoder that encodes the specified input stream

参数:
out - the output stream

UUEncoderStream

public UUEncoderStream(OutputStream out,
                       String name)
Create a UUencoder that encodes the specified input stream

参数:
out - the output stream
name - Specifies a name for the encoded buffer

UUEncoderStream

public UUEncoderStream(OutputStream out,
                       String name,
                       int mode)
Create a UUencoder that encodes the specified input stream

参数:
out - the output stream
name - Specifies a name for the encoded buffer
mode - Specifies permission mode for the encoded buffer
方法详细信息

setNameMode

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


write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
覆盖:
FilterOutputStream 中的 write
抛出:
IOException

write

public void write(byte[] data)
           throws IOException
覆盖:
FilterOutputStream 中的 write
抛出:
IOException

write

public void write(int c)
           throws IOException
覆盖:
FilterOutputStream 中的 write
抛出:
IOException

flush

public void flush()
           throws IOException
指定者:
接口 Flushable 中的 flush
覆盖:
FilterOutputStream 中的 flush
抛出:
IOException

close

public void close()
           throws IOException
指定者:
接口 Closeable 中的 close
覆盖:
FilterOutputStream 中的 close
抛出:
IOException


Copyright © 2013. All Rights Reserved.