My Java-RSS parser

Source: Internet
Author: User

Below is the body of the readme.txt File
I. Instructions for use

Program entry command
Cd f:/Java/2003012142
Set classpath = classes
Javac-D classes src/rssparser. Java
Java rssparser
Operation
Tree on the left
Left-click Select --- display rss url in the status bar
Right-click the pop-up --- method of the object

Ii. Functions
You can easily and quickly view RSS resources on the Internet and support rss2.0.
RSS can be added or deleted, and all channels can be updated together.
 
Iii. Features
Involved: Exception Handling, swing graphical interface, multithreading, local I/O operations, network programming, and xmldom operations
 
Iv. To be improved
Supports versions like rss1.0 and atom.
Ui advanced: HTML parsing and viewing abstract, complete menu functions.
Localized data. (Supports offline browsing)

5. RSS Overview
· Currently, most of the RSS subscription services on the Internet are blog sites and news portals.
Recently, Google, Baidu, and other search engines have also provided RSS services in various forms.
A week ago, with the joint efforts of myself and the student's Tsinghua portal website and student network TV station, I finally completed the RSS feed at the back-end of the student's Tsinghua portal website, it became the first website to provide RSS subscription service on Tsinghua campus network. We plan to contact the network center after completing the market research in the next semester to promote the website to the whole school.
· At present, there are many popular RSS readers on the Internet, not many in China, and most of them are junk.
Almost no open-source programs can be downloaded from the Internet. Only open-source programs such as rssbandit still require the. NET frameworks runtime environment.
I plan to use Java's cross-platform and network composition advantages to fill this gap.
· I don't need to talk about the advantages of RSS.
According to a report last month, mobile phones that support RSS subscription have been listed.
Over the past six months, many blog elites have been discussing the technical specifications for building feed: // network protocols.

Vi. Feelings
XML and tensor
The basic attribute of XML is "good structure" Well structed
The basic attribute of tensor is "Multi-linear" multilinear
The charm of XML lies in the Extensible
Tensor's charm lies in the universal
Speculation: the person who invented XML must have a good quality in algebra.
 
W3C and WTO
W3C is a standardized organization of Internet technologies.
The WTO is the Standardization Organization of world trade.
Today, with the wave of globalization "rampant", the technology-makers have to pay attention to W3C, just as the business people have to pay attention to the WTO.
 
The script is not a program
I have been familiar with scripts for a long time. From the flash event to the DHTML JavaScript, I do not pay attention to the code specifications.
I am used to the idea of quick solution. When I build a program that is a little larger, such as this Java big job, I find that many of my bad habits affect the writing efficiency of the program.
The solution-oriented idea is the most advanced, and the object-oriented idea has not yet taken root in my brain. Training based on these assignments alone is far from enough.
 
VII. Test report
The path starting with file: // is successfully parsed.
Permission denied (path resolution failure) for URLs starting with http: // on the network. After the firewall (Kingsoft network firewall 6) is disabled, the network is connected successfully, and RSS is parsed successfully.
Multi-thread (20) parallel processing, greatly improving network efficiency, and displaying the returned results first after successful connections.
The name of the connected rssnode is marked with (). After successful resolution, the () mark is removed.
Status Bar prompts throughout the process, including all Exception capture.
Most rss2.0 can be successfully parsed. Baidu's error prompted that the character set is wrong and has not been resolved yet.
Strong vulnerabilities:
1. If the channel definition file opml. XML does not exist, the program cannot run.
When the appearance of the tree is updated in Row 3, a null pointer exception is thrown randomly and cannot be captured.
Java. Lang. nullpointerexception
At javax. Swing. plaf. Basic. basictreeui. paintrow (unknown source)
At javax. Swing. plaf. Basic. basictreeui. Paint (unknown source)
At javax. Swing. plaf. Metal. metaltreeui. Paint (unknown source)
At javax. Swing. plaf. componentui. Update (unknown source)
At javax. Swing. jcomponent. paintcomponent (unknown source)
At javax. Swing. jcomponent. Paint (unknown source)
At javax. Swing. jcomponent. _ paintimmediately (unknown source)
At javax. Swing. jcomponent. paintimmediately (unknown source)
At javax. Swing. repaintmanager. paintdirtyregions (unknown source)
At javax. Swing. systemeventqueueutilities $ componentworkrequest. Run (unknown source)
At java. AWT. event. invocationevent. Dispatch (unknown source)
At java. AWT. eventqueue. dispatchevent (unknown source)
At java. AWT. eventdispatchthread. pumponeeventforhierarchy (unknown source)

At java. AWT. eventdispatchthread. pumpeventsforhierarchy (unknown source)
At java. AWT. eventdispatchthread. pumpevents (unknown source)
At java. AWT. eventdispatchthread. pumpevents (unknown source)
At java. AWT. eventdispatchthread. Run (unknown source)
I don't understand it, but it does not affect the normal operation of the program. The tree is occasionally deformed when running to 477 rows of updateui (), which is very strange.
You can also comment out this line.

Lack of Rationality: Add a new RSS site and leave it if it is invalid.
Details: The Chinese characters in the pop-up dialog box are too ugly.
The pop-up dialog box will be lost. After the pop-up dialog box is displayed, switch to another application and click the Windows taskbar to return to the main interface of the Java program, however, you can switch back to the Java program through Alt + TAB to see the dialog box.





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.