Class UncheckedFilterInputStream

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

    public final class UncheckedFilterInputStream
    extends java.io.FilterInputStream
    A BufferedReader that throws UncheckedIOException instead of IOException.

    To build an instance, see UncheckedFilterInputStream.Builder.

    Since:
    2.12.0
    See Also:
    BufferedReader, IOException, UncheckedIOException
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()
      Calls this method's super and rethrow IOException as UncheckedIOException.
      static UncheckedFilterInputStream.Builder builder()
      void close()
      Calls this method's super and rethrow IOException as UncheckedIOException.
      int read()
      Calls this method's super and rethrow IOException as UncheckedIOException.
      int read​(byte[] b)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      int read​(byte[] b, int off, int len)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void reset()
      Calls this method's super and rethrow IOException as UncheckedIOException.
      long skip​(long n)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      • Methods inherited from class java.io.FilterInputStream

        mark, markSupported
      • 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
    • Method Detail

      • available

        public int available()
                      throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        available in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException
      • close

        public void close()
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException
      • read

        public int read()
                 throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException
      • read

        public int read​(byte[] b)
                 throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        read in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException
      • reset

        public void reset()
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        reset in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException
      • skip

        public long skip​(long n)
                  throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        skip in class java.io.FilterInputStream
        Throws:
        java.io.UncheckedIOException