Class FileDataSource


  • @ParametersAreNonnullByDefault
    public class FileDataSource
    extends java.lang.Object
    Data source for access to file resource locking it for exclusive access.
    • Constructor Detail

      • FileDataSource

        public FileDataSource​(java.io.File sourceFile,
                              FileDataSource.EditMode editMode)
                       throws java.io.FileNotFoundException,
                              java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • FileDataSource

        public FileDataSource​(java.io.File sourceFile)
                       throws java.io.FileNotFoundException,
                              java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
    • Method Detail

      • getFileLength

        public long getFileLength()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • setFileLength

        public void setFileLength​(long length)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getFile

        @Nonnull
        public java.io.File getFile()
      • getByte

        public byte getByte​(long position)
      • clearCache

        public void clearCache()
        Clears cache windows.
      • close

        public void close()