A.5. The java.text Package
The java.text package contains utility classes for text processing and formatting, including date and numerical formatting. Table A.8 shows the Java and .NET counterparts.
Java | .NET |
---|---|
DateFormat | System.DateTime |
DateFormatSymbols | System.Globalization.DateTimeFormatInfo |
NumberFormat | System.Globalization.NumberFormatInfo |
SimpleDateFormat | System.Globalization.DateTimeFormatInfo |
StringCharacterIterator | System.IEnumerator (System.String) |
Java | .NET |
---|---|
Attr | System.Xml.XmlAttribute |
CdataSection | System.Xml.XmlCDataSection |
CharacterData | System.Xml.XmlCharacterData |
Comment | System.Xml.XmlComment |
Document | System.Xml.XmlDocument ... |
Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.