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
  • 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
    • tail

    • outForReading

      private SVNSpillBuffer.MemoryBlock outForReading
    • available

      private SVNSpillBuffer.MemoryBlock 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

      public SVNSpillBufferInputStream createInputStream()
    • write

      public void write(byte[] data, int offset, int length) throws SVNException
      Throws:
      SVNException
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
    • read

      public SVNSpillBuffer.MemoryBlock read() throws java.io.IOException
      Throws:
      java.io.IOException
    • maybeSeek

      private boolean maybeSeek() throws java.io.IOException
      Throws:
      java.io.IOException
    • readData

      private SVNSpillBuffer.MemoryBlock readData() throws java.io.IOException
      Throws:
      java.io.IOException
    • getBuffer

      private SVNSpillBuffer.MemoryBlock getBuffer()
    • returnBuffer

      private void returnBuffer(SVNSpillBuffer.MemoryBlock block)