diff options
author | Nick Burch <nick@apache.org> | 2012-07-08 18:50:11 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2012-07-08 18:50:11 +0000 |
commit | 8789e744398e32ac397dbfc93ab3c5b6f6bcb54d (patch) | |
tree | 98d93c8d53cd5c2ad5e7c01bb4d8662ab280ebf0 /src/java/org | |
parent | 4088217930064c2c550974d56c37432784f38335 (diff) | |
download | poi-8789e744398e32ac397dbfc93ab3c5b6f6bcb54d.tar.gz poi-8789e744398e32ac397dbfc93ab3c5b6f6bcb54d.zip |
Start on the code to process properties, and wire it up. No properties reading code exists yet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1358813 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/util/LittleEndian.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/util/LittleEndian.java b/src/java/org/apache/poi/util/LittleEndian.java index c07c4beb30..6ceb12a4a1 100644 --- a/src/java/org/apache/poi/util/LittleEndian.java +++ b/src/java/org/apache/poi/util/LittleEndian.java @@ -724,6 +724,24 @@ public class LittleEndian implements LittleEndianConsts } return ( ch4 << 24 ) + ( ch3 << 16 ) + ( ch2 << 8 ) + ( ch1 << 0 ); } + + /** + * get an unsigned int value from an InputStream + * + * @param stream + * the InputStream from which the int is to be read + * @return the unsigned int (32-bit) value + * @exception IOException + * will be propagated back to the caller + * @exception BufferUnderrunException + * if the stream cannot provide enough bytes + */ + public static long readUInt( InputStream stream ) throws IOException, + BufferUnderrunException + { + long retNum = readInt(stream); + return retNum & 0x00FFFFFFFFl; + } /** * get a long value from an InputStream |