- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- de.siegmar.fastcsv.writer.FastBufferedWriter
-
-
Field Summary
Fields Modifier and Type Field Description private booleanautoFlushBufferprivate booleanautoFlushWriterprivate char[]bufprivate intpos
-
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 voidclose()voidendRecord()Called to indicate that the current record is complete.voidflush()private voidflushBuffer()voidwrite(char[] cbuf, int off, int len)Writes a portion of an array of characters.voidwrite(int c)Writes a single character.voidwrite(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.IOExceptionDescription copied from interface:WritableWrites a single character.
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOExceptionDescription copied from interface:WritableWrites a portion of an array of characters.- Specified by:
writein interfaceWritable- Overrides:
writein 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.IOExceptionDescription copied from interface:WritableWrites a portion of a string.
-
endRecord
public void endRecord() throws java.io.IOExceptionDescription copied from interface:WritableCalled 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:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterWriter- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterWriter- Throws:
java.io.IOException
-
-