public class SVNFSFSPackedRevProps
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SVNFSFSPackedRevProps.Builder |
private static class |
SVNFSFSPackedRevProps.Entry |
Modifier and Type | Field and Description |
---|---|
private byte[] |
cachedUncompressedByteArray |
private java.util.List<SVNFSFSPackedRevProps.Entry> |
entries |
private long |
firstRevision |
static int |
INT64_BUFFER_SIZE |
Modifier | Constructor and Description |
---|---|
private |
SVNFSFSPackedRevProps(long firstRevision,
java.util.List<SVNFSFSPackedRevProps.Entry> entries,
byte[] cachedUncompressedByteArray) |
Modifier and Type | Method and Description |
---|---|
private static byte[] |
arrayCopyOfRange(byte[] bytes,
int offset,
int length) |
byte[] |
asCompressedLevelNoneByteArray() |
private byte[] |
asUncompressedByteArray() |
private static byte[] |
composePropertiesByteArray(SVNProperties properties) |
private java.io.OutputStream |
compressLevelDefault(byte[] uncompressedData,
java.io.OutputStream outputStream) |
protected static java.io.OutputStream |
compressLevelNone(byte[] uncompressedData,
java.io.OutputStream outputStream) |
private static byte[] |
decompress(byte[] compressedData) |
static SVNFSFSPackedRevProps |
fromCompressedByteArray(byte[] compressedData) |
static SVNFSFSPackedRevProps |
fromPackFile(java.io.File file) |
private static SVNFSFSPackedRevProps |
fromUncompressedByteArray(byte[] uncompressedData) |
long |
getFirstRevision() |
long |
getRevisionsCount() |
private long |
getSerializedSize() |
private long |
getTotalSize() |
private void |
invalidateCaches() |
private SVNProperties |
parseProperties(byte[] data,
int offset,
int length) |
SVNProperties |
parseProperties(long revision) |
private static long |
readEncodedUncompressedSize(java.io.InputStream inputStream,
int lengthRecordSize) |
private static long |
readNumber(java.io.InputStream inputStream) |
private void |
setEntry(long revision,
byte[] data) |
java.util.List<SVNFSFSPackedRevProps> |
setProperties(long revision,
SVNProperties properties,
long revPropPackSize) |
private byte[] |
toUncompressedByteArray() |
private static void |
writeBody(byte[] bytes,
java.io.OutputStream outputStream) |
private java.io.OutputStream |
writeCompressedLevelDefault(java.io.OutputStream outputStream) |
private java.io.OutputStream |
writeCompressedLevelNone(java.io.OutputStream outputStream) |
private static void |
writeEncodedUnCompressedSize(int compressedSize,
java.io.OutputStream outputStream) |
private void |
writeNumber(java.io.OutputStream outputStream,
long number) |
void |
writeToFile(java.io.File packFile,
boolean compress) |
public static final int INT64_BUFFER_SIZE
private final long firstRevision
private final java.util.List<SVNFSFSPackedRevProps.Entry> entries
private byte[] cachedUncompressedByteArray
private SVNFSFSPackedRevProps(long firstRevision, java.util.List<SVNFSFSPackedRevProps.Entry> entries, byte[] cachedUncompressedByteArray)
public static SVNFSFSPackedRevProps fromPackFile(java.io.File file) throws SVNException
SVNException
public static SVNFSFSPackedRevProps fromCompressedByteArray(byte[] compressedData) throws SVNException
SVNException
private static SVNFSFSPackedRevProps fromUncompressedByteArray(byte[] uncompressedData) throws SVNException
SVNException
public long getFirstRevision()
public long getRevisionsCount()
public byte[] asCompressedLevelNoneByteArray() throws SVNException
SVNException
public void writeToFile(java.io.File packFile, boolean compress) throws SVNException
SVNException
private java.io.OutputStream writeCompressedLevelDefault(java.io.OutputStream outputStream) throws SVNException
SVNException
private java.io.OutputStream writeCompressedLevelNone(java.io.OutputStream outputStream) throws SVNException
SVNException
public SVNProperties parseProperties(long revision) throws SVNException
SVNException
private long getTotalSize()
private long getSerializedSize() throws SVNException
SVNException
public java.util.List<SVNFSFSPackedRevProps> setProperties(long revision, SVNProperties properties, long revPropPackSize) throws SVNException
SVNException
private static byte[] decompress(byte[] compressedData) throws SVNException
SVNException
private static byte[] arrayCopyOfRange(byte[] bytes, int offset, int length)
protected static java.io.OutputStream compressLevelNone(byte[] uncompressedData, java.io.OutputStream outputStream) throws SVNException
SVNException
private java.io.OutputStream compressLevelDefault(byte[] uncompressedData, java.io.OutputStream outputStream) throws SVNException
SVNException
private static void writeBody(byte[] bytes, java.io.OutputStream outputStream) throws SVNException
SVNException
private static void writeEncodedUnCompressedSize(int compressedSize, java.io.OutputStream outputStream) throws SVNException
SVNException
private static long readEncodedUncompressedSize(java.io.InputStream inputStream, int lengthRecordSize) throws SVNException
SVNException
private byte[] asUncompressedByteArray() throws SVNException
SVNException
private SVNProperties parseProperties(byte[] data, int offset, int length) throws SVNException
SVNException
private static byte[] composePropertiesByteArray(SVNProperties properties) throws SVNException
SVNException
private byte[] toUncompressedByteArray() throws SVNException
SVNException
private void writeNumber(java.io.OutputStream outputStream, long number) throws SVNException
SVNException
private static long readNumber(java.io.InputStream inputStream) throws SVNException
SVNException
private void setEntry(long revision, byte[] data)
private void invalidateCaches()