Class ReadOnceTempFileByteBuffer

java.lang.Object
com.saperion.common.io.TempFileByteBuffer
com.saperion.common.io.ReadOnceTempFileByteBuffer
All Implemented Interfaces:
Closeable, AutoCloseable

public class ReadOnceTempFileByteBuffer extends TempFileByteBuffer
This sub-class of TempFileByteBuffer is only capable to return one InputStream. When this call is invoked the responsibility to delete a possible temporary file is given to the input stream which in turn will delete said file when closed.
Author:
jschwarz
  • Constructor Details

    • ReadOnceTempFileByteBuffer

      public ReadOnceTempFileByteBuffer(int inMemoryBytes)
      Parameters:
      inMemoryBytes - number of bytes to keep in memory before using a temp file
    • ReadOnceTempFileByteBuffer

      public ReadOnceTempFileByteBuffer(int inMemoryBytes, File tempFileDirectory)
      Parameters:
      inMemoryBytes - number of bytes to keep in memory before using a temp file
      tempFileDirectory - directory to store temporary files in
  • Method Details