/**
* @param fcStart The start of the text for this property, in _bytes_
* @param fcEnd The end of the text for this property, in _bytes_
+ * @deprecated
*/
public BytePropertyNode(int fcStart, int fcEnd, CharIndexTranslator translator, Object buf) {
super(
this.endBytes = fcEnd;
}
+ public BytePropertyNode( int charStart, int charEnd, Object buf )
+ {
+ super( charStart, charEnd, buf );
+
+ if ( charStart > charEnd )
+ throw new IllegalArgumentException( "charStart (" + charStart
+ + ") > charEnd (" + charEnd + ")" );
+
+ this.startBytes = -1;
+ this.endBytes = -1;
+ }
+
/**
* @deprecated Though bytes are actually stored in file, it is advised to
* use char positions for all operations. Including save