Class FSPackedNumbersStream
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.index.FSPackedNumbersStream
-
public class FSPackedNumbersStream extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytesprivate static intBYTES_BUFFER_SIZEprivate intbytesLengthprivate intbytesStartprivate booleaneofprivate FSFileinputprivate longinputStartPositionprivate static intMAX_BYTES_PER_NUMERprivate long[]numbersprivate static intNUMBERS_BUFFER_SIZEprivate intnumbersLengthprivate int[]numbersLengthsprivate intnumbersStartprivate longprefetchedBytesCount
-
Constructor Summary
Constructors Constructor Description FSPackedNumbersStream(FSFile input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private longdecodeSigned(long value)booleanisEof()longposition()longread()private booleanreadNextNumbersBlock()longreadSigned()voidseek(long offset)
-
-
-
Field Detail
-
MAX_BYTES_PER_NUMER
private static final int MAX_BYTES_PER_NUMER
- See Also:
- Constant Field Values
-
NUMBERS_BUFFER_SIZE
private static final int NUMBERS_BUFFER_SIZE
- See Also:
- Constant Field Values
-
BYTES_BUFFER_SIZE
private static final int BYTES_BUFFER_SIZE
- See Also:
- Constant Field Values
-
bytes
private final byte[] bytes
-
numbers
private final long[] numbers
-
numbersLengths
private final int[] numbersLengths
-
input
private final FSFile input
-
bytesStart
private int bytesStart
-
bytesLength
private int bytesLength
-
numbersStart
private int numbersStart
-
numbersLength
private int numbersLength
-
eof
private boolean eof
-
inputStartPosition
private long inputStartPosition
-
prefetchedBytesCount
private long prefetchedBytesCount
-
-
Constructor Detail
-
FSPackedNumbersStream
public FSPackedNumbersStream(FSFile input)
-
-
Method Detail
-
isEof
public boolean isEof()
-
readSigned
public long readSigned() throws SVNException- Throws:
SVNException
-
decodeSigned
private long decodeSigned(long value)
-
read
public long read() throws SVNException- Throws:
SVNException
-
readNextNumbersBlock
private boolean readNextNumbersBlock() throws java.io.IOException- Throws:
java.io.IOException
-
seek
public void seek(long offset)
-
position
public long position()
-
-