Class RewindableInputStream

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

    @Deprecated(since="2021-07-29")
    public class RewindableInputStream
    extends DynamicPushbackInputStream
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.
    RewindableInputStream is a specialization of the PushbackInputStream that maintains an internal buffer of read bytes that a user can rewind (unread) back into the stream without having to do their own buffer management. The rewind buffer grows dynamically
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int position()
      Deprecated.
       
      int read()
      Deprecated.
       
      int read​(byte[] b, int off, int len)
      Deprecated.
       
      void rewind()
      Deprecated.
       
      void rewind​(int len)
      Deprecated.
       
      void rewind​(int offset, int len)
      Deprecated.
       
      long skip​(long n)
      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

      • RewindableInputStream

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

        public RewindableInputStream​(java.io.InputStream in,
                                     int capacity)
        Deprecated.
    • Method Detail

      • position

        public int position()
        Deprecated.
      • rewind

        public void rewind()
                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • rewind

        public void rewind​(int offset,
                           int len)
                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • rewind

        public void rewind​(int len)
                    throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • read

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

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