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.MemoryBlock
private final int
private final boolean
private final File
private File
private SVNSpillBuffer.MemoryBlock
private final long
private long
private SVNSpillBuffer.MemoryBlock
private RandomAccessFile
private final boolean
private long
private long
private SVNSpillBuffer.MemoryBlock
-
Constructor Summary
ConstructorsConstructorDescriptionSVNSpillBuffer
(int blockSize, long maxSize) SVNSpillBuffer
(int blockSize, long maxSize, boolean deleteOnClose, boolean spillAllContents, File dirPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
private SVNSpillBuffer.MemoryBlock
long
long
getSize()
getSpill()
private boolean
read()
private SVNSpillBuffer.MemoryBlock
readData()
private void
void
write
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
read
- Throws:
IOException
-
maybeSeek
- Throws:
IOException
-
readData
- Throws:
IOException
-
getBuffer
-
returnBuffer
-