|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectjava.io.InputStream
play.data.parsing.MultipartStream.ItemInputStream
public class MultipartStream.ItemInputStream
An InputStream
for reading an items contents.
方法摘要 | |
---|---|
int |
available()
Returns the number of bytes, which are currently available, without blocking. |
void |
close()
Closes the input stream. |
long |
getBytesRead()
Returns the number of bytes, which have been read by the stream. |
boolean |
isClosed()
Returns, whether the stream is closed. |
int |
read()
Returns the next byte in the stream. |
int |
read(byte[] b,
int off,
int len)
Reads bytes into the given buffer. |
long |
skip(long bytes)
Skips the given number of bytes. |
从类 java.io.InputStream 继承的方法 |
---|
mark, markSupported, read, reset |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
方法详细信息 |
---|
public long getBytesRead()
public int available() throws java.io.IOException
java.io.InputStream
中的 available
java.io.IOException
- An I/O error occurs.public int read() throws java.io.IOException
java.io.InputStream
中的 read
java.io.IOException
- An I/O error occurred.public int read(byte[] b, int off, int len) throws java.io.IOException
java.io.InputStream
中的 read
b
- The destination buffer, where to write to.off
- Offset of the first byte in the buffer.len
- Maximum number of bytes to read.
java.io.IOException
- An I/O error occurred.public void close() throws java.io.IOException
java.io.Closeable
中的 close
java.io.InputStream
中的 close
java.io.IOException
- An I/O error occurred.public long skip(long bytes) throws java.io.IOException
java.io.InputStream
中的 skip
bytes
- Number of bytes to skip.
java.io.IOException
- An I/O error occurred.public boolean isClosed()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |