import java.util.List;
import java.util.Map;
-import org.apache.poi.hwpf.model.io.HWPFFileSystem;
import org.apache.poi.hwpf.model.io.HWPFOutputStream;
import org.apache.poi.hwpf.sprm.SprmBuffer;
import org.apache.poi.hwpf.sprm.SprmIterator;
return _paragraphs;
}
- @Deprecated
- public void writeTo( HWPFFileSystem sys, CharIndexTranslator translator )
- throws IOException
- {
- HWPFOutputStream wordDocumentStream = sys.getStream( "WordDocument" );
- HWPFOutputStream tableStream = sys.getStream( "1Table" );
-
- writeTo( wordDocumentStream, tableStream, translator );
- }
-
public void writeTo( HWPFOutputStream wordDocumentStream,
HWPFOutputStream tableStream, CharIndexTranslator translator )
throws IOException
package org.apache.poi.hwpf.model;
-import java.io.ByteArrayOutputStream;
import java.util.List;
import junit.framework.TestCase;
import org.apache.poi.hwpf.HWPFDocFixture;
import org.apache.poi.hwpf.HWPFTestDataSamples;
import org.apache.poi.hwpf.model.io.HWPFFileSystem;
+import org.apache.poi.hwpf.model.io.HWPFOutputStream;
public final class TestPAPBinTable extends TestCase
{
null, fib.getFcPlcfbtePapx(), fib.getLcbPlcfbtePapx(), fakeTPT );
HWPFFileSystem fileSys = new HWPFFileSystem();
-
- _pAPBinTable.writeTo( fileSys, fakeTPT );
- ByteArrayOutputStream tableOut = fileSys.getStream( "1Table" );
- ByteArrayOutputStream mainOut = fileSys.getStream( "WordDocument" );
+ HWPFOutputStream tableOut = fileSys.getStream( "1Table" );
+ HWPFOutputStream mainOut = fileSys.getStream( "WordDocument" );
+ _pAPBinTable.writeTo( mainOut, tableOut, fakeTPT );
byte[] newTableStream = tableOut.toByteArray();
byte[] newMainStream = mainOut.toByteArray();