瀏覽代碼

Remove deprecated HWPF FSPA methods

These methods have been @Deprecated for years, and are part of @Internal structures.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887039 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_1_0
Marius Volkhart 3 年之前
父節點
當前提交
8ea3d2274d

+ 1
- 8
src/scratchpad/src/org/apache/poi/hwpf/model/FSPA.java 查看文件

@@ -28,13 +28,6 @@ import org.apache.poi.util.Internal;
@Internal
public final class FSPA extends FSPAAbstractType
{
@Deprecated
public static final int FSPA_SIZE = getSize(); // 26

public FSPA()
{
}

public FSPA( byte[] bytes, int offset )
{
fillFields( bytes, offset );
@@ -42,7 +35,7 @@ public final class FSPA extends FSPAAbstractType

public byte[] toByteArray()
{
byte[] buf = new byte[FSPA_SIZE];
byte[] buf = new byte[getSize()];
serialize( buf, 0 );
return buf;
}

+ 0
- 17
src/scratchpad/src/org/apache/poi/hwpf/model/FSPATable.java 查看文件

@@ -48,23 +48,6 @@ public final class FSPATable
}
}

@Deprecated
public FSPATable( byte[] tableStream, int fcPlcspa, int lcbPlcspa,
List<TextPiece> tpt )
{
// Will be 0 if no drawing objects in document
if ( fcPlcspa == 0 )
return;

PlexOfCps plex = new PlexOfCps( tableStream, fcPlcspa, lcbPlcspa,
FSPA.FSPA_SIZE );
for ( int i = 0; i < plex.length(); i++ )
{
GenericPropertyNode property = plex.getProperty( i );
_byStart.put(property.getStart(), property );
}
}

public FSPA getFspaFromCp( int cp )
{
GenericPropertyNode propertyNode = _byStart.get(cp);

+ 0
- 12
src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java 查看文件

@@ -992,18 +992,6 @@ public final class FileInformationBlock {
_fieldHandler.setFieldSize( part.getFibFieldsField(), length );
}

@Deprecated
public int getFcPlcspaMom()
{
return _fieldHandler.getFieldOffset(FIBFieldHandler.PLCSPAMOM);
}

@Deprecated
public int getLcbPlcspaMom()
{
return _fieldHandler.getFieldSize(FIBFieldHandler.PLCSPAMOM);
}

/**
* @return Offset in the Table Stream at which the {@link OfficeArtContent} exists.
*/

Loading…
取消
儲存