Class DynamicPushbackInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    RewindableInputStream

    @Deprecated(since="2021-07-29")
    public class DynamicPushbackInputStream
    extends java.io.PushbackInputStream
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.
    PushbackInputStream implementation that performs dynamic resizing of the unread buffer
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int clear()
      Deprecated.
      Clear the buffer
      int read()
      Deprecated.
       
      int read​(byte[] b, int off, int len)
      Deprecated.
       
      int shrink()
      Deprecated.
      Shrink the buffer.
      long skip​(long n)
      Deprecated.
       
      void unread​(byte[] b, int off, int len)
      Deprecated.
       
      void unread​(int b)
      Deprecated.
       
      • Methods inherited from class java.io.PushbackInputStream

        available, close, mark, markSupported, reset, unread
      • 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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DynamicPushbackInputStream

        public DynamicPushbackInputStream​(java.io.InputStream in)
        Deprecated.
      • DynamicPushbackInputStream

        public DynamicPushbackInputStream​(java.io.InputStream in,
                                          int initialSize)
        Deprecated.
    • Method Detail

      • clear

        public int clear()
        Deprecated.
        Clear the buffer
      • shrink

        public int shrink()
        Deprecated.
        Shrink the buffer. This will reclaim currently unused space in the buffer, reducing memory but potentially increasing the cost of resizing the buffer
      • unread

        public void unread​(byte[] b,
                           int off,
                           int len)
                    throws java.io.IOException
        Deprecated.
        Overrides:
        unread in class java.io.PushbackInputStream
        Throws:
        java.io.IOException
      • unread

        public void unread​(int b)
                    throws java.io.IOException
        Deprecated.
        Overrides:
        unread in class java.io.PushbackInputStream
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Deprecated.
        Overrides:
        read in class java.io.PushbackInputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Deprecated.
        Overrides:
        read in class java.io.PushbackInputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Deprecated.
        Overrides:
        skip in class java.io.PushbackInputStream
        Throws:
        java.io.IOException