Class BDecoder.BDecoderInputStreamArray

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    BDecoder

    private static class BDecoder.BDecoderInputStreamArray
    extends java.io.InputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] bytes  
      private int markPos  
      private int overPos  
      private int pos  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      void mark​(int limit)  
      boolean markSupported()  
      int read()  
      int read​(byte[] buffer)  
      int read​(byte[] b, int offset, int length)  
      void reset()  
      • Methods inherited from class java.io.InputStream

        close, nullInputStream, readAllBytes, readNBytes, readNBytes, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bytes

        private final byte[] bytes
      • pos

        private int pos
      • markPos

        private int markPos
      • overPos

        private final int overPos
    • Constructor Detail

      • BDecoderInputStreamArray

        public BDecoderInputStreamArray​(java.nio.ByteBuffer buffer)
      • BDecoderInputStreamArray

        private BDecoderInputStreamArray​(byte[] _buffer)
      • BDecoderInputStreamArray

        private BDecoderInputStreamArray​(byte[] _buffer,
                                         int _offset,
                                         int _length)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] buffer)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int offset,
                        int length)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • mark

        public void mark​(int limit)
        Overrides:
        mark in class java.io.InputStream
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.InputStream
        Throws:
        java.io.IOException