]> source.dussan.org Git - poi.git/commitdiff
remove unused
authorSergey Vladimirov <sergey@apache.org>
Fri, 21 Oct 2011 23:45:22 +0000 (23:45 +0000)
committerSergey Vladimirov <sergey@apache.org>
Fri, 21 Oct 2011 23:45:22 +0000 (23:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187596 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hpsf/VariantVector.java [deleted file]

diff --git a/src/java/org/apache/poi/hpsf/VariantVector.java b/src/java/org/apache/poi/hpsf/VariantVector.java
deleted file mode 100644 (file)
index 7335c97..0000000
+++ /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<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 );
-        }
-    }
-}