bug 59170: remove deprecated WordExtractor constructor; add version when deprecated to HWPF HeaderStories

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748786 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-17 01:19:36 +00:00
parent 56ff882bef
commit 2a884279c1
2 changed files with 42 additions and 13 deletions

View File

@ -64,16 +64,6 @@ public final class WordExtractor extends POIOLE2TextExtractor
this( new HWPFDocument( fs ) ); this( new HWPFDocument( fs ) );
} }
/**
* @deprecated Use {@link #WordExtractor(DirectoryNode)} instead
*/
@Deprecated
public WordExtractor( DirectoryNode dir, POIFSFileSystem fs )
throws IOException
{
this( dir );
}
public WordExtractor( DirectoryNode dir ) throws IOException public WordExtractor( DirectoryNode dir ) throws IOException
{ {
this( new HWPFDocument( dir ) ); this( new HWPFDocument( dir ) );
@ -213,6 +203,7 @@ public final class WordExtractor extends POIOLE2TextExtractor
/** /**
* Grab the text from the headers * Grab the text from the headers
* @deprecated 3.8 beta 4
*/ */
@Deprecated @Deprecated
public String getHeaderText() public String getHeaderText()
@ -238,6 +229,7 @@ public final class WordExtractor extends POIOLE2TextExtractor
/** /**
* Grab the text from the footers * Grab the text from the footers
* @deprecated 3.8 beta 4
*/ */
@Deprecated @Deprecated
public String getFooterText() public String getFooterText()

View File

@ -82,36 +82,54 @@ public final class HeaderStories {
fib.getPlcfHddSize(), 0 ); fib.getPlcfHddSize(), 0 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getFootnoteSeparator() public String getFootnoteSeparator()
{ {
return getAt( 0 ); return getAt( 0 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getFootnoteContSeparator() public String getFootnoteContSeparator()
{ {
return getAt( 1 ); return getAt( 1 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getFootnoteContNote() public String getFootnoteContNote()
{ {
return getAt( 2 ); return getAt( 2 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getEndnoteSeparator() public String getEndnoteSeparator()
{ {
return getAt( 3 ); return getAt( 3 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getEndnoteContSeparator() public String getEndnoteContSeparator()
{ {
return getAt( 4 ); return getAt( 4 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getEndnoteContNote() public String getEndnoteContNote()
{ {
@ -148,16 +166,25 @@ public final class HeaderStories {
return getSubrangeAt( 5 ); return getSubrangeAt( 5 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getEvenHeader() { public String getEvenHeader() {
return getAt(6+0); return getAt(6+0);
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getOddHeader() { public String getOddHeader() {
return getAt(6+1); return getAt(6+1);
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getFirstHeader() { public String getFirstHeader() {
return getAt(6+4); return getAt(6+4);
} }
@ -196,18 +223,27 @@ public final class HeaderStories {
return getOddHeader(); return getOddHeader();
} }
@Deprecated /**
* @deprecated 3.8 beta 4
*/
@Deprecated
public String getEvenFooter() public String getEvenFooter()
{ {
return getAt( 6 + 2 ); return getAt( 6 + 2 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getOddFooter() public String getOddFooter()
{ {
return getAt( 6 + 3 ); return getAt( 6 + 3 );
} }
/**
* @deprecated 3.8 beta 4
*/
@Deprecated @Deprecated
public String getFirstFooter() public String getFirstFooter()
{ {
@ -257,6 +293,7 @@ public final class HeaderStories {
/** /**
* Get the string that's pointed to by the * Get the string that's pointed to by the
* given plcfHdd index * given plcfHdd index
* @deprecated 3.8 beta 4
*/ */
@Deprecated @Deprecated
private String getAt(int plcfHddIndex) { private String getAt(int plcfHddIndex) {