this.endBytes = fcEnd;
}
- public int getStartBytes() {
- return startBytes;
- }
+ /**
+ * @deprecated Though bytes are actually stored in file, it is advised to
+ * use char positions for all operations. Including save
+ * operations, because only char positions are preserved.
+ */
+ @Deprecated
+ public int getStartBytes()
+ {
+ return startBytes;
+ }
- public int getEndBytes() {
- return endBytes;
- }
+ /**
+ * @deprecated Though bytes are actually stored in file, it is advised to
+ * use char positions for all operations. Including save
+ * operations, because only char positions are preserved.
+ */
+ @Deprecated
+ public int getEndBytes()
+ {
+ return endBytes;
+ }
}
return (SprmBuffer)_buf;
}
- /**
- * @deprecated Though bytes are actually stored in file, it is advised to
- * use char positions for all operations. Including save
- * operations, because only char positions are preserved.
- */
- @Deprecated
- @Override
- public int getEndBytes()
- {
- return super.getEndBytes();
- }
-
- /**
- * @deprecated Though bytes are actually stored in file, it is advised to
- * use char positions for all operations. Including save
- * operations, because only char positions are preserved.
- */
- @Deprecated
- @Override
- public int getStartBytes()
- {
- // TODO Auto-generated method stub
- return super.getStartBytes();
- }
-
public ParagraphProperties getParagraphProperties(StyleSheet ss)
{
if(ss == null) {
package org.apache.poi.hwpf.model;
-import java.util.ArrayList;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.List;
+import org.apache.poi.hwpf.model.io.HWPFFileSystem;
+import org.apache.poi.hwpf.model.io.HWPFOutputStream;
import org.apache.poi.util.LittleEndian;
-import org.apache.poi.hwpf.model.io.*;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
// add the section descriptor bytes to the PlexOfCps.
/* original line */
- // GenericPropertyNode property = new
- // GenericPropertyNode(sepx.getStart(), sepx.getEnd(),
- // sed.toByteArray());
+ GenericPropertyNode property = new GenericPropertyNode(
+ sepx.getStart(), sepx.getEnd(), sed.toByteArray() );
/*
* Line using Ryan's FCtoCP() conversion method - unable to observe
* any effect on our testcases when using this code - piers
*/
/*
* there is an effect on Bug45743.doc actually. writeoutreadback
- * changes byte offset of chars (but preserve string offsets) -
- * sergey
+ * changes byte offset of chars (but preserve string offsets).
+ * Changing back to original lines - sergey
*/
- GenericPropertyNode property = new GenericPropertyNode(
- tpt.getCharIndex( sepx.getStartBytes() ),
- tpt.getCharIndex( sepx.getEndBytes() ), sed.toByteArray() );
+ // GenericPropertyNode property = new GenericPropertyNode(
+ // tpt.getCharIndex( sepx.getStartBytes() ),
+ // tpt.getCharIndex( sepx.getEndBytes() ), sed.toByteArray() );
plex.addProperty(property);