Class SVNFSFSPackedRevProps
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.revprop.SVNFSFSPackedRevProps
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private final List<SVNFSFSPackedRevProps.Entry>
private final long
static final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SVNFSFSPackedRevProps
(long firstRevision, List<SVNFSFSPackedRevProps.Entry> entries, byte[] cachedUncompressedByteArray) -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte[]
arrayCopyOfRange
(byte[] bytes, int offset, int length) byte[]
private byte[]
private static byte[]
composePropertiesByteArray
(SVNProperties properties) private OutputStream
compressLevelDefault
(byte[] uncompressedData, OutputStream outputStream) protected static OutputStream
compressLevelNone
(byte[] uncompressedData, OutputStream outputStream) private static byte[]
decompress
(byte[] compressedData) static SVNFSFSPackedRevProps
fromCompressedByteArray
(byte[] compressedData) static SVNFSFSPackedRevProps
fromPackFile
(File file) private static SVNFSFSPackedRevProps
fromUncompressedByteArray
(byte[] uncompressedData) long
long
private long
private long
private void
private SVNProperties
parseProperties
(byte[] data, int offset, int length) parseProperties
(long revision) private static long
readEncodedUncompressedSize
(InputStream inputStream, int lengthRecordSize) private static long
readNumber
(InputStream inputStream) private void
setEntry
(long revision, byte[] data) setProperties
(long revision, SVNProperties properties, long revPropPackSize) private byte[]
private static void
writeBody
(byte[] bytes, OutputStream outputStream) private OutputStream
writeCompressedLevelDefault
(OutputStream outputStream) private OutputStream
writeCompressedLevelNone
(OutputStream outputStream) private static void
writeEncodedUnCompressedSize
(int compressedSize, OutputStream outputStream) private void
writeNumber
(OutputStream outputStream, long number) void
writeToFile
(File packFile, boolean compress)
-
Field Details
-
INT64_BUFFER_SIZE
public static final int INT64_BUFFER_SIZE- See Also:
-
firstRevision
private final long firstRevision -
entries
-
cachedUncompressedByteArray
private byte[] cachedUncompressedByteArray
-
-
Constructor Details
-
SVNFSFSPackedRevProps
private SVNFSFSPackedRevProps(long firstRevision, List<SVNFSFSPackedRevProps.Entry> entries, byte[] cachedUncompressedByteArray)
-
-
Method Details
-
fromPackFile
- Throws:
SVNException
-
fromCompressedByteArray
public static SVNFSFSPackedRevProps fromCompressedByteArray(byte[] compressedData) throws SVNException - Throws:
SVNException
-
fromUncompressedByteArray
private static SVNFSFSPackedRevProps fromUncompressedByteArray(byte[] uncompressedData) throws SVNException - Throws:
SVNException
-
getFirstRevision
public long getFirstRevision() -
getRevisionsCount
public long getRevisionsCount() -
asCompressedLevelNoneByteArray
- Throws:
SVNException
-
writeToFile
- Throws:
SVNException
-
writeCompressedLevelDefault
- Throws:
SVNException
-
writeCompressedLevelNone
- Throws:
SVNException
-
parseProperties
- Throws:
SVNException
-
getTotalSize
private long getTotalSize() -
getSerializedSize
- Throws:
SVNException
-
setProperties
public List<SVNFSFSPackedRevProps> setProperties(long revision, SVNProperties properties, long revPropPackSize) throws SVNException - Throws:
SVNException
-
decompress
- Throws:
SVNException
-
arrayCopyOfRange
private static byte[] arrayCopyOfRange(byte[] bytes, int offset, int length) -
compressLevelNone
protected static OutputStream compressLevelNone(byte[] uncompressedData, OutputStream outputStream) throws SVNException - Throws:
SVNException
-
compressLevelDefault
private OutputStream compressLevelDefault(byte[] uncompressedData, OutputStream outputStream) throws SVNException - Throws:
SVNException
-
writeBody
- Throws:
SVNException
-
writeEncodedUnCompressedSize
private static void writeEncodedUnCompressedSize(int compressedSize, OutputStream outputStream) throws SVNException - Throws:
SVNException
-
readEncodedUncompressedSize
private static long readEncodedUncompressedSize(InputStream inputStream, int lengthRecordSize) throws SVNException - Throws:
SVNException
-
asUncompressedByteArray
- Throws:
SVNException
-
parseProperties
- Throws:
SVNException
-
composePropertiesByteArray
- Throws:
SVNException
-
toUncompressedByteArray
- Throws:
SVNException
-
writeNumber
- Throws:
SVNException
-
readNumber
- Throws:
SVNException
-
setEntry
private void setEntry(long revision, byte[] data) -
invalidateCaches
private void invalidateCaches()
-