Class UncheckedFilterWriter

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

    public final class UncheckedFilterWriter
    extends java.io.FilterWriter
    A FilterWriter that throws UncheckedIOException instead of IOException.

    To build an instance, see UncheckedFilterWriter.Builder.

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Writer append​(char c)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      java.io.Writer append​(java.lang.CharSequence csq)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      java.io.Writer append​(java.lang.CharSequence csq, int start, int end)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      static UncheckedFilterWriter.Builder builder()
      void close()
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void flush()
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void write​(char[] cbuf)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void write​(char[] cbuf, int off, int len)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void write​(int c)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void write​(java.lang.String str)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      void write​(java.lang.String str, int off, int len)
      Calls this method's super and rethrow IOException as UncheckedIOException.
      • Methods inherited from class java.io.Writer

        nullWriter
      • Methods inherited from class java.lang.Object

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

      • append

        public java.io.Writer append​(char c)
                              throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Specified by:
        append in interface java.lang.Appendable
        Overrides:
        append in class java.io.Writer
        Throws:
        java.io.UncheckedIOException
      • append

        public java.io.Writer append​(java.lang.CharSequence csq)
                              throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Specified by:
        append in interface java.lang.Appendable
        Overrides:
        append in class java.io.Writer
        Throws:
        java.io.UncheckedIOException
      • append

        public java.io.Writer append​(java.lang.CharSequence csq,
                                     int start,
                                     int end)
                              throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Specified by:
        append in interface java.lang.Appendable
        Overrides:
        append in class java.io.Writer
        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.FilterWriter
        Throws:
        java.io.UncheckedIOException
      • flush

        public void flush()
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.FilterWriter
        Throws:
        java.io.UncheckedIOException
      • write

        public void write​(char[] cbuf)
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        write in class java.io.Writer
        Throws:
        java.io.UncheckedIOException
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        write in class java.io.FilterWriter
        Throws:
        java.io.UncheckedIOException
      • write

        public void write​(int c)
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        write in class java.io.FilterWriter
        Throws:
        java.io.UncheckedIOException
      • write

        public void write​(java.lang.String str)
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        write in class java.io.Writer
        Throws:
        java.io.UncheckedIOException
      • write

        public void write​(java.lang.String str,
                          int off,
                          int len)
                   throws java.io.UncheckedIOException
        Calls this method's super and rethrow IOException as UncheckedIOException.
        Overrides:
        write in class java.io.FilterWriter
        Throws:
        java.io.UncheckedIOException