Browse Source

Minor formatting


git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353590 13f79535-47bb-0310-9956-ffa450edef68
tags/BEFORE_RICHTEXT
Glen Stampoultzis 20 years ago
parent
commit
56ca4d92ef

+ 0
- 3
src/scratchpad/src/org/apache/poi/hwpf/model/TextPiece.java View File

@@ -35,9 +35,6 @@ public class TextPiece extends PropertyNode implements Comparable

/**
* @param start Offset in main document stream.
* @param length The total length of the text in bytes. Note: 1 character
* does not necessarily refer to 1 byte.
* @param unicode true if this text is unicode.
*/
public TextPiece(int start, int end, byte[] text, PieceDescriptor pd, int cpStart)
throws UnsupportedEncodingException

+ 6
- 8
src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java View File

@@ -18,15 +18,13 @@
package org.apache.poi.hwpf.model;


import java.io.UnsupportedEncodingException;
import java.io.IOException;

import java.util.List;
import java.util.ArrayList;

import org.apache.poi.hwpf.model.io.HWPFOutputStream;
import org.apache.poi.poifs.common.POIFSConstants;

import org.apache.poi.hwpf.model.io.*;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;

/**
* @author Ryan Ackley
@@ -66,7 +64,7 @@ public class TextPieceTable
}

int firstPieceFilePosition = pieces[0].getFilePosition();
_cpMin = firstPieceFilePosition - fcMin;
_cpMin = firstPieceFilePosition - fcMin;

// using the PieceDescriptors, build our list of TextPieces.
for (int x = 0; x < pieces.length; x++)

Loading…
Cancel
Save