From e1424086c30d75985b771cee16ecb40d7d9fc477 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Fri, 21 Oct 2011 23:45:22 +0000 Subject: [PATCH] remove unused git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187596 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hpsf/VariantVector.java | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/java/org/apache/poi/hpsf/VariantVector.java diff --git a/src/java/org/apache/poi/hpsf/VariantVector.java b/src/java/org/apache/poi/hpsf/VariantVector.java deleted file mode 100644 index 7335c9712a..0000000000 --- a/src/java/org/apache/poi/hpsf/VariantVector.java +++ /dev/null @@ -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 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(); - for ( int i = 0; i < length; i++ ) - { - Property property = new Property( id, elementType, null ); - VariantSupport.read( data, offset, length, elementType, codepage ); - } - } -} -- 2.39.5