Class SVNSpillBuffer
java.lang.Object
org.tmatesoft.svn.core.internal.util.SVNSpillBuffer
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SVNSpillBuffer
extends java.lang.Object
implements java.io.Closeable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNSpillBuffer.MemoryBlock
private final int
private final boolean
private final java.io.File
private java.io.File
private SVNSpillBuffer.MemoryBlock
private final long
private long
private SVNSpillBuffer.MemoryBlock
private java.io.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, java.io.File dirPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
private SVNSpillBuffer.MemoryBlock
java.io.File
long
long
getSize()
java.io.RandomAccessFile
getSpill()
private boolean
read()
private SVNSpillBuffer.MemoryBlock
readData()
private void
void
write
(byte[] data, int offset, int length) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
blockSize
private final int blockSize -
maxSize
private final long maxSize -
deleteOnClose
private final boolean deleteOnClose -
spillAllContents
private final boolean spillAllContents -
dirPath
private final java.io.File dirPath -
memorySize
private long memorySize -
spillSize
private long spillSize -
fileName
private java.io.File fileName -
spill
private java.io.RandomAccessFile 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, java.io.File dirPath)
-
-
Method Details
-
getSize
public long getSize() -
getMemorySize
public long getMemorySize() -
getFileName
public java.io.File getFileName() -
getSpill
public java.io.RandomAccessFile getSpill() -
getBlockSize
public int getBlockSize() -
createInputStream
-
write
- Throws:
SVNException
-
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
read
- Throws:
java.io.IOException
-
maybeSeek
private boolean maybeSeek() throws java.io.IOException- Throws:
java.io.IOException
-
readData
- Throws:
java.io.IOException
-
getBuffer
-
returnBuffer
-