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 void
close()
long
getPos()
void
sync()
Sync output to permanant storage.void
write(byte[] buffer, int offset, int length)
void
write(int value)
-
-
-
Method Detail
-
sync
public void sync() throws java.io.IOException
Description copied from class:TransactionStorage.TransactionOutput
Sync output to permanant storage.- Specified by:
sync
in classTransactionStorage.TransactionOutput
- Throws:
java.io.IOException
-
getPos
public long getPos()
- Specified by:
getPos
in classTransactionStorage.TransactionOutput
-
write
public void write(int value) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- 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.OutputStream
- Throws:
java.io.IOException
-
-