类 ByteBufferInputStream

  • 所有已实现的接口:
    java.io.Closeable, java.lang.AutoCloseable

    public class ByteBufferInputStream
    extends java.io.InputStream
    Wrap a byte buffer as input stream. The ByteBuffer's position will change after read operation.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int available()  
      void close()  
      void mark​(int readlimit)  
      boolean markSupported()  
      int read()  
      int read​(byte[] b)  
      int read​(byte[] b, int off, int len)  
      void reset()  
      long skip​(long n)  
      • 从类继承的方法 java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ByteBufferInputStream

        public ByteBufferInputStream​(java.nio.ByteBuffer buffer)
    • 方法详细资料

      • read

        public int read​(byte[] b)
        覆盖:
        read 在类中 java.io.InputStream
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
        覆盖:
        read 在类中 java.io.InputStream
      • skip

        public long skip​(long n)
        覆盖:
        skip 在类中 java.io.InputStream
      • available

        public int available()
        覆盖:
        available 在类中 java.io.InputStream
      • close

        public void close()
        指定者:
        close 在接口中 java.lang.AutoCloseable
        指定者:
        close 在接口中 java.io.Closeable
        覆盖:
        close 在类中 java.io.InputStream
      • mark

        public void mark​(int readlimit)
        覆盖:
        mark 在类中 java.io.InputStream
      • reset

        public void reset()
                   throws java.io.IOException
        覆盖:
        reset 在类中 java.io.InputStream
        抛出:
        java.io.IOException
      • markSupported

        public boolean markSupported()
        覆盖:
        markSupported 在类中 java.io.InputStream
      • read

        public int read()
        指定者:
        read 在类中 java.io.InputStream