类 ByteBufferInputStream
- java.lang.Object
-
- java.io.InputStream
-
- net.dongliu.commons.io.ByteBufferInputStream
-
- 所有已实现的接口:
java.io.Closeable,java.lang.AutoCloseable
public class ByteBufferInputStream extends java.io.InputStreamWrap a byte buffer as input stream. The ByteBuffer's position will change after read operation.
-
-
方法详细资料
-
read
public int read(byte[] b)
- 覆盖:
read在类中java.io.InputStream
-
read
public int read(byte[] b, int off, int len)- 覆盖:
read在类中java.io.InputStream
-
skip
public long skip(long n)
- 覆盖:
skip在类中java.io.InputStream
-
available
public int available()
- 覆盖:
available在类中java.io.InputStream
-
close
public void close()
- 指定者:
close在接口中java.lang.AutoCloseable- 指定者:
close在接口中java.io.Closeable- 覆盖:
close在类中java.io.InputStream
-
mark
public void mark(int readlimit)
- 覆盖:
mark在类中java.io.InputStream
-
reset
public void reset() throws java.io.IOException- 覆盖:
reset在类中java.io.InputStream- 抛出:
java.io.IOException
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported在类中java.io.InputStream
-
read
public int read()
- 指定者:
read在类中java.io.InputStream
-
-