Class SVNFSFSPackedRevProps
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.revprop.SVNFSFSPackedRevProps
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private final List<SVNFSFSPackedRevProps.Entry>private final longstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSVNFSFSPackedRevProps(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 OutputStreamcompressLevelDefault(byte[] uncompressedData, OutputStream outputStream) protected static OutputStreamcompressLevelNone(byte[] uncompressedData, OutputStream outputStream) private static byte[]decompress(byte[] compressedData) static SVNFSFSPackedRevPropsfromCompressedByteArray(byte[] compressedData) static SVNFSFSPackedRevPropsfromPackFile(File file) private static SVNFSFSPackedRevPropsfromUncompressedByteArray(byte[] uncompressedData) longlongprivate longprivate longprivate voidprivate SVNPropertiesparseProperties(byte[] data, int offset, int length) parseProperties(long revision) private static longreadEncodedUncompressedSize(InputStream inputStream, int lengthRecordSize) private static longreadNumber(InputStream inputStream) private voidsetEntry(long revision, byte[] data) setProperties(long revision, SVNProperties properties, long revPropPackSize) private byte[]private static voidwriteBody(byte[] bytes, OutputStream outputStream) private OutputStreamwriteCompressedLevelDefault(OutputStream outputStream) private OutputStreamwriteCompressedLevelNone(OutputStream outputStream) private static voidwriteEncodedUnCompressedSize(int compressedSize, OutputStream outputStream) private voidwriteNumber(OutputStream outputStream, long number) voidwriteToFile(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()
-