Package com.attivio.util.ft
Class FileTransactionStorage.FileOutput
- java.lang.Object
-
- java.io.OutputStream
-
- com.attivio.util.ft.TransactionStorage.TransactionOutput
-
- com.attivio.util.ft.FileTransactionStorage.FileOutput
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
- Enclosing class:
- FileTransactionStorage
protected static class FileTransactionStorage.FileOutput extends TransactionStorage.TransactionOutput
-
-
Constructor Summary
Constructors Constructor Description FileOutput(java.io.File path, boolean append)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetPos()voidsync()Sync output to permanant storage.voidwrite(byte[] buffer, int offset, int length)voidwrite(int value)
-
-
-
Method Detail
-
sync
public void sync() throws java.io.IOExceptionDescription copied from class:TransactionStorage.TransactionOutputSync output to permanant storage.- Specified by:
syncin classTransactionStorage.TransactionOutput- Throws:
java.io.IOException
-
getPos
public long getPos()
- Specified by:
getPosin classTransactionStorage.TransactionOutput
-
write
public void write(int value) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] buffer, int offset, int length) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- 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.OutputStream- Throws:
java.io.IOException
-
-