-
- 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 byWriter
with the addition of theendRecord()
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.
-
-
-
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 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.IOException
Writes 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.IOException
Called to indicate that the current record is complete.- Throws:
java.io.IOException
- if an I/O error occurs
-
-