Author: onealj Date: Wed Jun 15 03:42:18 2016 New Revision: 1748488 URL: http://svn.apache.org/viewvc?rev=1748488&view=rev Log: bug 59170: remove deprecated writeTo method in @Internal PAPBinTable
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java?rev=1748488&r1=1748487&r2=1748488&view=diff ============================================================================== --- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java (original) +++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java Wed Jun 15 03:42:18 2016 @@ -26,7 +26,6 @@ import java.util.LinkedList; 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; @@ -387,16 +386,6 @@ public class PAPBinTable 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 Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java?rev=1748488&r1=1748487&r2=1748488&view=diff ============================================================================== --- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java (original) +++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/model/TestPAPBinTable.java Wed Jun 15 03:42:18 2016 @@ -17,7 +17,6 @@ package org.apache.poi.hwpf.model; -import java.io.ByteArrayOutputStream; import java.util.List; import junit.framework.TestCase; @@ -25,6 +24,7 @@ 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 { @@ -52,10 +52,9 @@ public final class TestPAPBinTable exten 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(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org