Avail File
AvailFile is a specification for declaring behavior and state for a file that has been opened from the hierarchy of an Avail ModuleRoot.
Author
Richard Arriaga
Parameters
file Wrapper
The AbstractFileWrapper that wraps this AvailFile.
Constructors
Link copied to clipboard
Construct an AvailFile.
Types
Functions
Link copied to clipboard
Indicate this file has been edited to be different than what is saved to disk.
Link copied to clipboard
abstract fun editRange( data: ByteArray, start: Int, end: Int, timestamp: Long = System.currentTimeMillis(), originator: UUID): TracedAction
Content copied to clipboard
Insert the ByteArray data into the file at the specified location. This should remove existing data in the file in this range and replace it with the provided data. This should preserve all data outside of this range.
Link copied to clipboard
Link copied to clipboard
Indicate this file has been edited to be different than what is saved to disk.
Link copied to clipboard
abstract fun replaceFile( data: ByteArray, timestamp: Long = System.currentTimeMillis(), originator: UUID): TracedAction
Content copied to clipboard
Replace the entire contents of the file with the provided byte array.
Properties
Link copied to clipboard
The AbstractFileWrapper that wraps this AvailFile.
Link copied to clipboard