aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hpsf
diff options
context:
space:
mode:
authorSergey Vladimirov <sergey@apache.org>2011-10-21 23:45:22 +0000
committerSergey Vladimirov <sergey@apache.org>2011-10-21 23:45:22 +0000
commite1424086c30d75985b771cee16ecb40d7d9fc477 (patch)
tree695631f8ce9026f7bc539a46900cbb4a94b3c88d /src/java/org/apache/poi/hpsf
parent0df5442322d2e095f77a7ec5bf07c762667cb438 (diff)
downloadpoi-e1424086c30d75985b771cee16ecb40d7d9fc477.tar.gz
poi-e1424086c30d75985b771cee16ecb40d7d9fc477.zip
remove unused
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1187596 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/hpsf')
-rw-r--r--src/java/org/apache/poi/hpsf/VariantVector.java43
1 files changed, 0 insertions, 43 deletions
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<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 );
- }
- }
-}