简体   繁体   中英

What is going on with java.nio.charset.Charsets?

So, as far as I can tell, this class doesn't exist in the standard Java library and is an addition in Dalvik. Is this correct?

My reason for thinking this is the android class "NdefRecord" contains reference to it and uses it but there is no way of importing it into a standard Java project (that I can find).

Is there any way to import this class to an Android project?

Where can I find it's up-to-date content, as used by the android project?

java.nio.charset.Charsets , which is different from Charset , is unique to Dalvik. If you look at the comment header in the source file you will see:

@hide internal use only

This means it is not part of the public API, and should not be used by applications. If you decide to use it anyway, you will need to access it through reflection.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM