Class TransactionalWriter
- java.lang.Object
-
- java.io.Writer
-
- org.apache.batchee.extras.transaction.TransactionalWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class TransactionalWriter extends Writer
-
-
Constructor Summary
Constructors Constructor Description TransactionalWriter(File file, String encoding, Serializable checkpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()longposition()voidwrite(char[] cbuf, int off, int len)
-
-
-
Constructor Detail
-
TransactionalWriter
public TransactionalWriter(File file, String encoding, Serializable checkpoint) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
position
public long position()
-
-