Closeable
, AutoCloseable
public class PeekableInputStream extends InputStream
构造器 | 说明 |
---|---|
PeekableInputStream(InputStream in) |
限定符和类型 | 方法 | 说明 |
---|---|---|
int |
available() |
|
void |
close() |
|
int |
peek() |
|
int |
read() |
|
int |
read(byte[] b) |
|
int |
read(byte[] b,
int offset,
int length) |
|
long |
skip(long n) |
mark, markSupported, readAllBytes, readNBytes, reset, transferTo
public PeekableInputStream(InputStream in)
public int peek() throws IOException
IOException
public int read() throws IOException
read
在类中 InputStream
IOException
public int read(byte[] b) throws IOException
read
在类中 InputStream
IOException
public int read(byte[] b, int offset, int length) throws IOException
read
在类中 InputStream
IOException
public long skip(long n) throws IOException
skip
在类中 InputStream
IOException
public int available() throws IOException
available
在类中 InputStream
IOException
public void close() throws IOException
close
在接口中 AutoCloseable
close
在接口中 Closeable
close
在类中 InputStream
IOException
Copyright © 2018. All rights reserved.