com.sun.mail.util
类 UUDecoderStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.sun.mail.util.UUDecoderStream
- 所有已实现的接口:
- Closeable
public class UUDecoderStream
- extends FilterInputStream
This class implements a UUDecoder. It is implemented as
a FilterInputStream, so one can just wrap this class around
any input stream and read bytes from this filter. The decoding
is done as the bytes are read out.
- 作者:
- John Mani, Bill Shannon
|
方法摘要 |
int |
available()
|
int |
getMode()
Get the "mode" field from the prefix. |
String |
getName()
Get the "name" field from the prefix. |
boolean |
markSupported()
|
int |
read()
Read the next decoded byte from this input stream. |
int |
read(byte[] buf,
int off,
int len)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UUDecoderStream
public UUDecoderStream(InputStream in)
- Create a UUdecoder that decodes the specified input stream
- 参数:
in - the input stream
read
public int read()
throws IOException
- Read the next decoded byte from this input stream. The byte
is returned as an
int in the range 0
to 255. If no byte is available because the end of
the stream has been reached, the value -1 is returned.
This method blocks until input data is available, the end of the
stream is detected, or an exception is thrown.
- 覆盖:
- 类
FilterInputStream 中的 read
- 返回:
- next byte of data, or
-1 if the end of
stream is reached.
- 抛出:
IOException - if an I/O error occurs.- 另请参见:
FilterInputStream.in
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- 覆盖:
- 类
FilterInputStream 中的 read
- 抛出:
IOException
markSupported
public boolean markSupported()
- 覆盖:
- 类
FilterInputStream 中的 markSupported
available
public int available()
throws IOException
- 覆盖:
- 类
FilterInputStream 中的 available
- 抛出:
IOException
getName
public String getName()
throws IOException
- Get the "name" field from the prefix. This is meant to
be the pathname of the decoded file
- 返回:
- name of decoded file
- 抛出:
IOException - if an I/O error occurs.
getMode
public int getMode()
throws IOException
- Get the "mode" field from the prefix. This is the permission
mode of the source file.
- 返回:
- permission mode of source file
- 抛出:
IOException - if an I/O error occurs.
Copyright © 2013. All Rights Reserved.