Package io.keikai.doc.collab.structs
Class ContentBinary
java.lang.Object
io.keikai.doc.collab.structs.AbstractContent
io.keikai.doc.collab.structs.ContentBinary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this content.voiddelete(Transaction transaction) Deletes this content from a transaction.voidgc(StructStore store) Performs garbage collection on this content.intintgetRef()voidintegrate(Transaction transaction, Item item) Integrates this content into a transaction.booleanShould return false if this Item is some kind of meta information (e.g. format information)booleanmergeWith(ContentBinary right) static ContentBinaryreadContentBinary(UpdateDecoder decoder) Reads the content from the decoder.voidsetContent(Uint8Array content) splice(int offset) Splices the content at the specified offset.voidwrite(UpdateEncoder encoder, int offset) Writes this content to an encoder.Methods inherited from class io.keikai.doc.collab.structs.AbstractContent
mergeWith
-
Constructor Details
-
ContentBinary
- Parameters:
content-
-
-
Method Details
-
getLength
public int getLength()- Overrides:
getLengthin classAbstractContent- Returns:
- int
-
getContent
- Overrides:
getContentin classAbstractContent- Returns:
- List
-
setContent
-
isCountable
public boolean isCountable()Description copied from class:AbstractContentShould return false if this Item is some kind of meta information (e.g. format information). * Whether this Item should be addressable via `yarray.get(i)` * Whether this Item should be counted when computing yarray.length- Overrides:
isCountablein classAbstractContent- Returns:
- boolean
-
copy
Description copied from class:AbstractContentCreates a copy of this content.- Overrides:
copyin classAbstractContent- Returns:
- ContentBinary
-
splice
Description copied from class:AbstractContentSplices the content at the specified offset.- Overrides:
splicein classAbstractContent- Parameters:
offset-- Returns:
- ContentBinary
-
mergeWith
- Parameters:
right-- Returns:
- boolean
-
integrate
Description copied from class:AbstractContentIntegrates this content into a transaction.- Overrides:
integratein classAbstractContent- Parameters:
transaction-item-
-
delete
Description copied from class:AbstractContentDeletes this content from a transaction.- Overrides:
deletein classAbstractContent- Parameters:
transaction-
-
gc
Description copied from class:AbstractContentPerforms garbage collection on this content.- Overrides:
gcin classAbstractContent- Parameters:
store-
-
write
Description copied from class:AbstractContentWrites this content to an encoder.- Overrides:
writein classAbstractContent- Parameters:
encoder-offset-
-
getRef
public int getRef()- Overrides:
getRefin classAbstractContent- Returns:
- int
-
readContentBinary
Reads the content from the decoder.- Parameters:
decoder-- Returns:
- ContentBinary
-