remove unused

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-10-21 23:45:22 +00:00
parent fddd46c4e6
commit 04fdfd2458
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
package org.apache.poi.hpsf;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import org.apache.poi.util.LittleEndian;
/**
* Holder for vector-type properties
*
* @author Sergey Vladimirov (vlsergey {at} gmail {dot} com)
*/
public class VariantVector
{
private final List<Property> values;
public VariantVector( int codepage, long id, long type, byte[] data, int startOffset )
throws UnsupportedEncodingException, ReadingNotSupportedException
{
if ( ( type & 0x1000 ) != 0x1000 )
throw new IllegalArgumentException( "Specified type is not vector" );
final long elementType = type ^ 0x1000;
int offset = startOffset;
final long longLength = LittleEndian.getUInt( data, offset );
offset += LittleEndian.INT_SIZE;
if ( longLength > Integer.MAX_VALUE )
throw new UnsupportedOperationException( "Vector is too long -- "
+ longLength );
final int length = (int) longLength;
this.values = new ArrayList<Property>();
for ( int i = 0; i < length; i++ )
{
Property property = new Property( id, elementType, null );
VariantSupport.read( data, offset, length, elementType, codepage );
}
}
}