Class SVNSpillBuffer
java.lang.Object
org.tmatesoft.svn.core.internal.util.SVNSpillBuffer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNSpillBuffer.MemoryBlockprivate final intprivate final booleanprivate final Fileprivate Fileprivate SVNSpillBuffer.MemoryBlockprivate final longprivate longprivate SVNSpillBuffer.MemoryBlockprivate RandomAccessFileprivate final booleanprivate longprivate longprivate SVNSpillBuffer.MemoryBlock -
Constructor Summary
ConstructorsConstructorDescriptionSVNSpillBuffer(int blockSize, long maxSize) SVNSpillBuffer(int blockSize, long maxSize, boolean deleteOnClose, boolean spillAllContents, File dirPath) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intprivate SVNSpillBuffer.MemoryBlocklonglonggetSize()getSpill()private booleanread()private SVNSpillBuffer.MemoryBlockreadData()private voidvoidwrite(byte[] data, int offset, int length)
-
Field Details
-
blockSize
private final int blockSize -
maxSize
private final long maxSize -
deleteOnClose
private final boolean deleteOnClose -
spillAllContents
private final boolean spillAllContents -
dirPath
-
memorySize
private long memorySize -
spillSize
private long spillSize -
fileName
-
spill
-
head
-
tail
-
outForReading
-
available
-
spillStart
private long spillStart
-
-
Constructor Details
-
SVNSpillBuffer
public SVNSpillBuffer(int blockSize, long maxSize) -
SVNSpillBuffer
public SVNSpillBuffer(int blockSize, long maxSize, boolean deleteOnClose, boolean spillAllContents, File dirPath)
-
-
Method Details
-
getSize
public long getSize() -
getMemorySize
public long getMemorySize() -
getFileName
-
getSpill
-
getBlockSize
public int getBlockSize() -
createInputStream
-
write
- Throws:
SVNException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
read
- Throws:
IOException
-
maybeSeek
- Throws:
IOException
-
readData
- Throws:
IOException
-
getBuffer
-
returnBuffer
-