Interface Writable

All Superinterfaces:
AutoCloseable, Closeable, Flushable
All Known Implementing Classes:
FastBufferedWriter, UnbufferedWriter

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

    Modifier and Type
    Method
    Description
    void
    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(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 Details

    • write

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

      void write(String value, int off, int len) throws 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:
      IOException
      See Also:
    • write

      void write(char[] value, int off, int len) throws 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:
      IOException
      See Also:
    • endRecord

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