Abstract Avail Text File
abstract class AbstractAvailTextFile(val charset: Charset, val fileWrapper: AbstractFileWrapper) : AvailFile
Content copied to clipboard
A AbstractAvailTextFile is an abstract AvailFile that is has text in a provided Charset.
Author
Richard Arriaga
Parameters
charset
The Charset of the file.
file Wrapper
The AbstractFileWrapper that wraps this AvailFile.
Constructors
Link copied to clipboard
fun AbstractAvailTextFile(charset: Charset, fileWrapper: AbstractFileWrapper)
Content copied to clipboard
Construct an AvailFile.
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