Glen, You need to apply the LittlEndian patch that I sent in a seperate posting around the same time. It is attached for your convenience
Ryan ----- Original Message ----- From: "Glen Stampoultzis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 20, 2002 6:52 AM Subject: Re: [PATCH] HDF refactored > Hi Ryan, > > I seem to be missing something. > > [echo] Compiling with Java 1.3, debug on, optimize off, deprecation on > [javac] Compiling 7 source files to > \temp\jakarta-build\jakarta-poi\scratchp > ad\classes > [javac] > C:\temp\jakarta-build\jakarta-poi\scratchpad\src\org\apache\poi\hdf\ > model\HDFObjectFactory.java:196: Method getUnsignedByte(byte[], int) not > found i > n class org.apache.poi.util.LittleEndian. > [javac] int crun = LittleEndian.getUnsignedByte(fkp, 511); > [javac] ^ > > > Regards, > > Glen > > > ----- Original Message ----- > From: "Said Ackley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, March 20, 2002 12:04 PM > Subject: Re: [PATCH] HDF refactored > > > > here is the diff attached as a txt file. BTW how do I post a patch to > > bugzilla? > > > > Ryan > > > >
Index: LittleEndian.java =================================================================== RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/util/LittleEndian.java,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 LittleEndian.java --- LittleEndian.java 31 Jan 2002 02:23:46 -0000 1.1.1.1 +++ LittleEndian.java 19 Mar 2002 04:31:20 -0000 @@ -80,6 +80,34 @@ } /** + * get the unsigned value of a byte. + * + * @param data the byte array. + * @param offset a starting offset into the byte array. + * + * @return the unsigned value of the byte as a 32 bit integer + * + * @exception ArrayIndexOutOfBoundsException may be thrown + */ + public static int getUnsignedByte(final byte [] data, final int offset) + { + return ( int ) getNumber(data, offset, BYTE_SIZE); + } + + /** + * get the unsigned value of a byte. + * + * @param data the byte array + * + * @return the unsigned value of the byte as a 32 bit integer + * + * @exception ArrayIndexOutOfBoundsException may be thrown + */ + public static int getUnsignedByte(final byte [] data) + { + return getUnsignedByte(data, 0); + } + /** * get a short value from a byte array * * @param data the byte array