import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.lang.reflect.Constructor;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.HWPFDocumentCore;
import org.apache.poi.hwpf.model.ListTables;
import org.apache.poi.hwpf.usermodel.BorderCode;
import org.apache.poi.hwpf.usermodel.Paragraph;
-import org.apache.poi.hwpf.usermodel.Range;
-import org.apache.poi.hwpf.usermodel.TableIterator;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.util.IOUtils;
return "solid";
}
}
-
+
public static String getBorderWidth( BorderCode borderCode )
{
int lineWidth = borderCode.getLineWidth();
}
}
- public static TableIterator newTableIterator( Range range, int level )
- {
- try
- {
- Constructor<TableIterator> constructor = TableIterator.class
- .getDeclaredConstructor( Range.class, int.class );
- constructor.setAccessible( true );
- return constructor.newInstance( range, Integer.valueOf( level ) );
- }
- catch ( Exception exc )
- {
- throw new Error( exc );
- }
- }
-
static String substringBeforeLast( String str, String separator )
{
if ( isEmpty( str ) || isEmpty( separator ) )