public class InputStreamRamdomRead extends InputStream
| 构造器和说明 |
|---|
InputStreamRamdomRead(File file) |
protected final File oriFile
protected long markPos
public InputStreamRamdomRead(File file) throws IOException
IOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStreampublic void mark(int readlimit)
mark 在类中 InputStreampublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic long getCurPos()
public void seek(long pos)
throws IOException
IOExceptionpublic byte[] readBytes(int length)
throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.