-
- 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.FlushableThis interface extends the basic functionality provided byWriterwith the addition of theendRecord()method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendRecord()Called to indicate that the current record is complete.voidwrite(char[] value, int off, int len)Writes a portion of an array of characters.voidwrite(int c)Writes a single character.voidwrite(java.lang.String value, int off, int len)Writes a portion of a string.
-
-
-
Method Detail
-
write
void write(int c) throws java.io.IOExceptionWrites 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.IOExceptionWrites a portion of a string.- Parameters:
value- the string to writeoff- the offset from which to start writing characterslen- 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.IOExceptionWrites a portion of an array of characters.- Parameters:
value- the array of characters to writeoff- the offset from which to start writing characterslen- the number of characters to write- Throws:
java.io.IOException- See Also:
Writer.write(char[], int, int)
-
endRecord
void endRecord() throws java.io.IOExceptionCalled to indicate that the current record is complete.- Throws:
java.io.IOException- if an I/O error occurs
-
-