mirror of https://github.com/apache/poi.git
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
This commit is contained in:
parent
a134b9abb3
commit
8ea3d2274d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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…
Reference in New Issue