Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stumped




On 28 Jul 2006, at 10:16, Mark Ripley wrote:

I'm completely flummoxed with this:

I have a file of bytes, which I read in with BufferedReader. Each read from BufferedReader has a corresponding write to a ByteArrayOutputStream.

Lurking in the file is a byte with value 128.

Now, I know that bytes are signed in Java, but for some reason the value returned when it comes across the 128 byte is -60!

Can't work that one out, can you?

BufferedReader does character set conversion. What encoding do you create it with?


Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >IDEs (From: "Scott Posey" <email@hidden>)
 >Re: IDEs (From: Marc Gracia Galobart <email@hidden>)
 >Re: IDEs (From: Scott Palmer <email@hidden>)
 >Re: IDEs (From: Fabrizio Giudici <email@hidden>)
 >Re: IDEs (From: Michael Hall <email@hidden>)
 >Stumped (From: Mark Ripley <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.