Class GZIPDecodingInterceptor.FinishableGZIPInputStream

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

    public static class GZIPDecodingInterceptor.FinishableGZIPInputStream
    extends java.util.zip.GZIPInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int count  
      private int maxSize  
      private boolean server  
      • Fields inherited from class java.util.zip.GZIPInputStream

        crc, eos, GZIP_MAGIC
      • Fields inherited from class java.util.zip.InflaterInputStream

        buf, inf, len
      • Fields inherited from class java.io.FilterInputStream

        in
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()  
      int read​(byte[] buf, int off, int len)  
      • Methods inherited from class java.util.zip.GZIPInputStream

        close
      • Methods inherited from class java.util.zip.InflaterInputStream

        available, fill, mark, markSupported, read, reset, skip
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.io.InputStream

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

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

      • maxSize

        private int maxSize
      • count

        private int count
      • server

        private boolean server
    • Constructor Detail

      • FinishableGZIPInputStream

        public FinishableGZIPInputStream​(java.io.InputStream is)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • FinishableGZIPInputStream

        public FinishableGZIPInputStream​(java.io.InputStream is,
                                         boolean server)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • FinishableGZIPInputStream

        public FinishableGZIPInputStream​(java.io.InputStream is,
                                         boolean server,
                                         int maxSize)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • read

        public int read​(byte[] buf,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.util.zip.GZIPInputStream
        Throws:
        java.io.IOException
      • finish

        public void finish()