public class LineWriter extends BufferedWriter
private final AtomicInteger rows
private final int batchSize
public LineWriter(Writer out) throws IOException
IOExceptionpublic LineWriter(Writer out, int batchSize)
public void write(String str) throws IOException
write 在类中 WriterIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 BufferedWriterIOExceptionprivate void doWrite()
throws IOException
IOExceptionCopyright © 2020. All rights reserved.