Interface Writable

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, java.io.Flushable
    All Known Implementing Classes:
    FastBufferedWriter, UnbufferedWriter

    interface Writable
    extends java.io.Closeable, java.io.Flushable
    This interface extends the basic functionality provided by Writer with the addition of the endRecord() method.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void endRecord()
      Called to indicate that the current record is complete.
      void write​(char[] value, int off, int len)
      Writes a portion of an array of characters.
      void write​(int c)
      Writes a single character.
      void write​(java.lang.String value, int off, int len)
      Writes a portion of a string.
      • Methods inherited from interface java.io.Closeable

        close
      • Methods inherited from interface java.io.Flushable

        flush
    • Method Detail

      • write

        void write​(int c)
            throws java.io.IOException
        Writes a single character.
        Parameters:
        c - the character to write
        Throws:
        java.io.IOException
        See Also:
        Writer.write(int)
      • write

        void write​(java.lang.String value,
                   int off,
                   int len)
            throws java.io.IOException
        Writes a portion of a string.
        Parameters:
        value - the string to write
        off - the offset from which to start writing characters
        len - the number of characters to write
        Throws:
        java.io.IOException
        See Also:
        Writer.write(String, int, int)
      • write

        void write​(char[] value,
                   int off,
                   int len)
            throws java.io.IOException
        Writes a portion of an array of characters.
        Parameters:
        value - the array of characters to write
        off - the offset from which to start writing characters
        len - the number of characters to write
        Throws:
        java.io.IOException
        See Also:
        Writer.write(char[], int, int)
      • endRecord

        void endRecord()
                throws java.io.IOException
        Called to indicate that the current record is complete.
        Throws:
        java.io.IOException - if an I/O error occurs