类 SelectInputStream
java.lang.Object
java.io.InputStream
com.obs.services.model.select.SelectInputStream
-
方法概要
修饰符和类型方法说明voidabort()Informs that the serialization process must be aborted.intReturns the current number of bytes buffered.voidclose()Closes the streamvoidmark(int readLimit) Marks the current position in the stream NOT SUPPORTEDbooleanReturns if stream marks are supported Default is false because marks are not supportedintread()Returns the next character in the input streamintread(byte[] b, int off, int len) Returns an array of characters from the input streamvoidreset()Resets the stream NOT SUPPORTED, it raises an exceptionlongskip(long len) Skips one or more characters from the input stream从类继承的方法 java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
方法详细资料
-
abort
public void abort()Informs that the serialization process must be aborted. It does not close immediately, just marks it to do it in the next synchronous call -
read
Returns the next character in the input stream- 指定者:
read在类中InputStream- 返回:
- The next character, or -1 when the input stream is closed or already consumed
- 抛出:
IOException
-
read
Returns an array of characters from the input stream- 覆盖:
read在类中InputStream- 参数:
b- Output byte arrayoff- Offset into the output arraylen- Max number of characters to read- 返回:
- The number of characters returned, or -1 when the input stream is closed or already consumed
- 抛出:
IOException
-
skip
Skips one or more characters from the input stream- 覆盖:
skip在类中InputStream- 参数:
len- Number of bytes to skip- 返回:
- Number of bytes skipped
- 抛出:
IOException
-
available
Returns the current number of bytes buffered. It only reports the buffered characters but not the total remaining bytes in the stream because this value is not known in advance.- 覆盖:
available在类中InputStream- 返回:
- Number of buffered bytes, or 0 when the stream is empty
- 抛出:
IOException
-
close
Closes the stream- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中InputStream- 抛出:
IOException
-
mark
public void mark(int readLimit) Marks the current position in the stream NOT SUPPORTED- 覆盖:
mark在类中InputStream
-
reset
Resets the stream NOT SUPPORTED, it raises an exception- 覆盖:
reset在类中InputStream- 抛出:
IOException
-
markSupported
public boolean markSupported()Returns if stream marks are supported Default is false because marks are not supported- 覆盖:
markSupported在类中InputStream
-