473,659 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

StringTokenizer 'legacy class'

8 New Member
The API specification for the Java 2 Platform Standard Edition 5.0 states that the class StringTokenizer is 'a legacy class.' What does this mean?

a.m.
May 17 '07 #1
6 2450
JosAH
11,448 Recognized Expert MVP
The API specification for the Java 2 Platform Standard Edition 5.0 states that the class StringTokenizer is 'a legacy class.' What does this mean?

a.m.
The StringTokenizer class was already there in the old Java 1.0 version. Later,
better tokenizers have been added thanks to the regular expression processing
classes. The class is next to useless and is only retained in the core library
for backward compatibility reasons. It's better not use it because before you
know they stamp this class 'depracated' which 'officially' means that future
versions of Java won't support it anymore.

kind regards,

Jos
May 17 '07 #2
emekadavid
46 New Member
they'll rather deprecate the class than support its use.
May 17 '07 #3
dmjpro
2,476 Top Contributor
remember ...... in JAVA classes r not deprecated but the methods r deprecated and those methods r introduced in new Class.

kind regards.
dmjpro.
May 18 '07 #4
prometheuzz
197 Recognized Expert New Member
remember ...... in JAVA classes r not deprecated but the methods r deprecated and those methods r introduced in new Class.

kind regards.
dmjpro.
That is not true: classes can be (and are*) deprecated.

* http://java.sun.com/j2se/1.5.0/docs/...ist.html#class
May 18 '07 #5
dmjpro
2,476 Top Contributor
a good thing i came to know today..
thanxxx.
May 18 '07 #6
prometheuzz
197 Recognized Expert New Member
a good thing i came to know today..
thanxxx.
No problem.
; )

---
May 18 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3797
by: - Steve - | last post by:
It doesn't appear that Visual Studio 2003 has the StringTokenizer class for a J# project. Am I missing something? Steve
3
1764
by: masood.iqbal | last post by:
In this day and age, you never say no to any work that is thrown at you ---- so when I was offered this short-term contract to convert legacy C code to C++, I did not say no. Personally I believed that it was a somewhat futile exercise since one of the main requirements was for the existing API (a functional interface written in C) to remain the same. I would have much rathered that the mandate be ab-initio, but that was not the case...
3
4010
by: Sai Kit Tong | last post by:
Hi, I am developing a new application running on Windows platform that needs to interface with existing legacy code - written in basic C / C++. I am trying to evaluate Java vs C# implementations. Originally, I have the impression that C# should be a clear winner. I started with Java and using the guideline from the book "Java Native Interface". Though complex, the book provide details of the practical implementation and potential...
3
2371
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached response). My first reply directed me to source code migration but I didn't have the source code. The second reply mentioned about .NET interoperability (PInvoke I think) but I MENTIONED THAT I COULDN'T FIND ANY DOCUMENTATION FROM MSDN LIBRARY BASED ON...
5
8003
by: Carlitos | last post by:
Hi there, What would be the counterpart for Java's StringTokenizer class in .NET? In fact, does anybody know a good web site that gives this kind of information, like a Java-.NET/.NET-Java dictionary or equivalency table? Many thanks, --
2
1634
by: Mark Olbert | last post by:
First off, the sympathy is for all you poor buggers out there who have to figure out how to marry Managed Extensions for C++ onto your legacy code. My condolences; my brief experience with the process leads me to believe the Microsoft hates all of its VC++ developers :) Now, the question. I'm getting a NullReferenceException in a __gc class that wraps functionality in a legacy C/C++ app (it's actually part of the Nero burning rom api). ...
9
2539
by: Roy Chastain | last post by:
I have a legacy structure that appears on a communications line that has 16 bit, 8 bit, 2 bit and 1 bit fields in it. The best I have been able to do with this was to use FieldOffset for the 8 and 16 bit fields. I then defined enums with the FlagAttribute to generate the 1 and 2 bit fields. Any suggestions or comments on the preceding are welcome. Now, things get better. As I said this structure comes on a communications line so if a...
1
6614
Ganon11
by: Ganon11 | last post by:
Hey, Last year I was working in Java, and one of the predefined classes we used was the stringTokenizer.java class. I wanted to use this in C++, but couldn't find a predefined class. So I made my own class - here's the code: #include <iostream> #include <string> using namespace std; class stringTokenizer { public:
0
1317
by: SvenV | last post by:
Hello, I'm quite new to WCF and want to use it in a project that I'm currently working on. I need some advice though. The legacy application that I currently have created an xml file with data. About 20 elements / line. Now this data needs to be transported to a server where it will be inserted in a database. Currently the xml is serialized to bytes and sent via tcp/ip raw sockets to a host that is listening. That created back xml of the...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4334
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.