Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: chmod
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: chmod



pretty sure getBytes(encoding) shouldn't. The last might be where I'm remembering wrong. The javadoc doesn't spell out if it actually does any converting. I thought from some post some time back that the data already had to conform to the indicated encoding.

That's not right, getBytes(encoding) does do conversion. All Strings in Java are UTF-16, and as such can't be in any other encoding, if they are String objects. The getBytes method converts from UTF-16 (Java's native format), to a byte array storing the data in the specifies encoding.


-Alexei Svitkine
Fizzysoft
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: chmod (From: Kevin Ryan <email@hidden>)
 >Re: chmod (From: 中山 太雅 <email@hidden>)
 >Re: chmod (From: Michael Hall <email@hidden>)
 >Re: chmod (From: Andrew Thompson <email@hidden>)
 >Re: chmod (From: Michael Hall <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.