Class JniYXmlText

java.lang.Object
net.carcdr.ycrdt.jni.JniYXmlText
All Implemented Interfaces:
AutoCloseable, net.carcdr.ycrdt.YXmlNode, net.carcdr.ycrdt.YXmlText

public class JniYXmlText extends Object implements net.carcdr.ycrdt.YXmlText
YXmlText represents a collaborative XML text type in a Y-CRDT document.

YXmlText provides collaborative text editing operations specifically designed for XML documents. It supports insert, push, delete, and rich text formatting operations with automatic conflict resolution.

This class implements Closeable and should be used with try-with-resources to ensure proper cleanup of native resources.

Example usage:


 try (YDoc doc = new JniYDoc();
      YXmlText xmlText = doc.getXmlText("myxmltext")) {
     xmlText.push("Hello");
     xmlText.push(" World");
     System.out.println(xmlText.toString()); // Hello World
 }
 
See Also:
  • YDoc