- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- de.siegmar.fastcsv.writer.FastBufferedWriter
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
autoFlushBuffer
private boolean
autoFlushWriter
private char[]
buf
private int
pos
-
Constructor Summary
Constructors Constructor Description FastBufferedWriter(java.io.Writer writer, int bufferSize, boolean autoFlushBuffer, boolean autoFlushWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
endRecord()
Called to indicate that the current record is complete.void
flush()
private void
flushBuffer()
void
write(char[] cbuf, 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 str, int off, int len)
Writes a portion of a string.
-
-
-
Method Detail
-
write
public void write(int c) throws java.io.IOException
Description copied from interface:Writable
Writes a single character.
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException
Description copied from interface:Writable
Writes a portion of an array of characters.- Specified by:
write
in interfaceWritable
- Overrides:
write
in classjava.io.FilterWriter
- Parameters:
cbuf
- 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)
-
write
public void write(java.lang.String str, int off, int len) throws java.io.IOException
Description copied from interface:Writable
Writes a portion of a string.
-
endRecord
public void endRecord() throws java.io.IOException
Description copied from interface:Writable
Called to indicate that the current record is complete.
-
flushBuffer
private void flushBuffer() throws java.io.IOException
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.FilterWriter
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterWriter
- Throws:
java.io.IOException
-
-