Package com.attivio.util.ft
Class FileTransactionStorage.FileInput
- java.lang.Object
-
- java.io.InputStream
-
- com.attivio.util.ft.TransactionStorage.TransactionInput
-
- com.attivio.util.ft.FileTransactionStorage.FileInput
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- FileTransactionStorage
protected class FileTransactionStorage.FileInput extends TransactionStorage.TransactionInput
-
-
Constructor Summary
Constructors Constructor Description FileInput(java.io.File path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetPos()protected bytereadByte()protected voidreadBytes(byte[] buffer, int offset, int length)protected intreadInt()protected intreadUnsignedShort()protected voidseekInternal(long pos)java.lang.StringtoString()-
Methods inherited from class com.attivio.util.ft.TransactionStorage.TransactionInput
read, readDocument, readFrameId, readId, readMessageId, readObject, readString, reset, seek, sync
-
-
-
-
Method Detail
-
getPos
public long getPos() throws java.io.IOException- Specified by:
getPosin classTransactionStorage.TransactionInput- Throws:
java.io.IOException
-
seekInternal
protected void seekInternal(long pos) throws java.io.IOException- Specified by:
seekInternalin classTransactionStorage.TransactionInput- Throws:
java.io.IOException
-
readBytes
protected void readBytes(byte[] buffer, int offset, int length) throws java.io.IOException- Specified by:
readBytesin classTransactionStorage.TransactionInput- Throws:
java.io.IOException
-
readUnsignedShort
protected int readUnsignedShort() throws java.io.IOException- Specified by:
readUnsignedShortin classTransactionStorage.TransactionInput- Throws:
java.io.IOException
-
readInt
protected int readInt() throws java.io.IOException- Specified by:
readIntin classTransactionStorage.TransactionInput- Throws:
java.io.IOException
-
readByte
protected byte readByte() throws java.io.IOException- Specified by:
readBytein classTransactionStorage.TransactionInput- 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.InputStream- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-