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[]
bytes
private static int
BYTES_BUFFER_SIZE
private int
bytesLength
private int
bytesStart
private boolean
eof
private FSFile
input
private long
inputStartPosition
private static int
MAX_BYTES_PER_NUMER
private long[]
numbers
private static int
NUMBERS_BUFFER_SIZE
private int
numbersLength
private int[]
numbersLengths
private int
numbersStart
private long
prefetchedBytesCount
-
Constructor Summary
Constructors Constructor Description FSPackedNumbersStream(FSFile input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private long
decodeSigned(long value)
boolean
isEof()
long
position()
long
read()
private boolean
readNextNumbersBlock()
long
readSigned()
void
seek(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()
-
-