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.MemoryBlockprivate final intprivate final booleanprivate final java.io.Fileprivate java.io.Fileprivate SVNSpillBuffer.MemoryBlockprivate final longprivate longprivate SVNSpillBuffer.MemoryBlockprivate java.io.RandomAccessFileprivate final booleanprivate longprivate longprivate 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 TypeMethodDescriptionvoidclose()intprivate SVNSpillBuffer.MemoryBlockjava.io.FilelonglonggetSize()java.io.RandomAccessFilegetSpill()private booleanread()private SVNSpillBuffer.MemoryBlockreadData()private voidvoidwrite(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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein 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
-