类 SelectInputStream

java.lang.Object
java.io.InputStream
com.obs.services.model.select.SelectInputStream
所有已实现的接口:
Closeable, AutoCloseable

public class SelectInputStream extends InputStream
  • 方法详细资料

    • 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

      public int read() throws IOException
      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

      public int read(byte[] b, int off, int len) throws IOException
      Returns an array of characters from the input stream
      覆盖:
      read 在类中 InputStream
      参数:
      b - Output byte array
      off - Offset into the output array
      len - Max number of characters to read
      返回:
      The number of characters returned, or -1 when the input stream is closed or already consumed
      抛出:
      IOException
    • skip

      public long skip(long len) throws IOException
      Skips one or more characters from the input stream
      覆盖:
      skip 在类中 InputStream
      参数:
      len - Number of bytes to skip
      返回:
      Number of bytes skipped
      抛出:
      IOException
    • available

      public int available() throws IOException
      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

      public void close() throws IOException
      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

      public void reset() throws IOException
      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