public class SelectInputStream extends InputStream
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abort()
Informs that the serialization process must be aborted.
|
int |
available()
Returns the current number of bytes buffered.
|
void |
close()
Closes the stream
|
void |
mark(int readLimit)
Marks the current position in the stream
NOT SUPPORTED
|
boolean |
markSupported()
Returns if stream marks are supported
Default is false because marks are not supported
|
int |
read()
Returns the next character in the input stream
|
int |
read(byte[] b,
int off,
int len)
Returns an array of characters from the input stream
|
void |
reset()
Resets the stream
NOT SUPPORTED, it raises an exception
|
long |
skip(long len)
Skips one or more characters from the input stream
|
readpublic void abort()
public int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamb - Output byte arrayoff - Offset into the output arraylen - Max number of characters to readIOExceptionpublic long skip(long len)
throws IOException
skip 在类中 InputStreamlen - Number of bytes to skipIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic void mark(int readLimit)
mark 在类中 InputStreampublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStreamCopyright © 2024. All rights reserved.