aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/util/HexDump.java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2007-09-08 16:34:10 +0000
committerYegor Kozlov <yegor@apache.org>2007-09-08 16:34:10 +0000
commit0c24b8f16c012820934c60b3072948e27830d393 (patch)
treecbaa8b8fddc0a3f50bb057d3f456a562c57817fe /src/java/org/apache/poi/util/HexDump.java
parentf9bda3915e057f0c93aba5c6d1e1e3b73bbaf438 (diff)
downloadpoi-0c24b8f16c012820934c60b3072948e27830d393.tar.gz
poi-0c24b8f16c012820934c60b3072948e27830d393.zip
Support for getting OLE objects from HSSFWorkbook. See bug 43222 for details.
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@573878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/util/HexDump.java')
-rw-r--r--src/java/org/apache/poi/util/HexDump.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/util/HexDump.java b/src/java/org/apache/poi/util/HexDump.java
index a6e23bdd7e..aaea9d57a2 100644
--- a/src/java/org/apache/poi/util/HexDump.java
+++ b/src/java/org/apache/poi/util/HexDump.java
@@ -269,6 +269,25 @@ public class HexDump
}
/**
+ * Converts the parameter to a hex value.
+ *
+ * @param value The value to convert
+ * @return A String representing the array of shorts
+ */
+ public static String toHex(final short[] value)
+ {
+ StringBuffer retVal = new StringBuffer();
+ retVal.append('[');
+ for(int x = 0; x < value.length; x++)
+ {
+ retVal.append(toHex(value[x]));
+ retVal.append(", ");
+ }
+ retVal.append(']');
+ return retVal.toString();
+ }
+
+ /**
* <p>Converts the parameter to a hex value breaking the results into
* lines.</p>
*