ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/XMLReader/XMLPacketMaker.java
Revision 1.14 - (view) (annotate) - [select for diffs]
Fri Nov 17 14:49:13 2000 UTC (24 years ago) by pjm2
Branch: MAIN
CVS Tags: HEAD, PROJECT_COMPLETION
Changes since 1.13: +2 -16 lines
Diff to previous 1.13 , to selected 1.5
Removed some reporting features from UDPReaderThread and
XMLPacketMaker

Revision 1.13 - (view) (annotate) - [select for diffs]
Fri Nov 17 14:45:56 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.12: +15 -4 lines
Diff to previous 1.12 , to selected 1.5
Fixed a major parsing problem by wrapping the XML in an InputSource object
and removing null characters from the input.  Also modified the XMLSender
class so that it no longer sent "null" when the last line of an input file
is reached.

Revision 1.12 - (view) (annotate) - [select for diffs]
Fri Nov 17 12:44:47 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.11: +6 -6 lines
Diff to previous 1.11 , to selected 1.5
Altered test.xml to have a declaration of the file format.

XMLPacketMaker has slightly different error handling.

Revision 1.11 - (view) (annotate) - [select for diffs]
Fri Nov 17 12:16:39 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 , to selected 1.5
Changed a lot of parts of UDPReader, UDPReaderThread, XMLPacketMaker,
XMLPacketParser and XMLSender so that they all work together.  XMLSender
is just a summy program to send UDP data to the UDPReader.

Revision 1.10 - (view) (annotate) - [select for diffs]
Fri Nov 17 11:07:32 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.9: +15 -92 lines
Diff to previous 1.9 , to selected 1.5
Added a new class - XMLPacketParser.java

This new class looks after the SAX parsing methods which are used to
create our XMLPacket contents.

The XMLPacketMaker class has also been altered to make use of the
XMLPacketParser class.  The XMLPacketMaker class now accepts a String
argument in its constructor.  It uses the XMLPacketParser to populate the
XMLPacket, for which the XMLPacketMaker provides an accessor.

Revision 1.9 - (view) (annotate) - [select for diffs]
Tue Nov 14 12:36:11 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 , to selected 1.5
Added test.bad - this is a file containing malformed XML markup to see if
the error handling in XMLPacketManager works properly.  XMLPacketMaker has
been altered accordingly, catching Throwable exceptions.

Revision 1.8 - (view) (annotate) - [select for diffs]
Tue Nov 14 12:23:17 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.7: +23 -55 lines
Diff to previous 1.7 , to selected 1.5
Updated the test.xml file to contain slightly more realistic data ;-)

The XMLPacketMaker main method now handles attributes within XML opening
tags.  Read the comments in the file to see how these are dealt with.  Go
on, you know you want to.

Revision 1.7 - (view) (annotate) - [select for diffs]
Tue Nov 14 12:01:19 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.6: +12 -6 lines
Diff to previous 1.6 , to selected 1.5
Added a function to XMLPacket.java that allows the entire contents of the
packet to be echoed to the screen.  The main method of XMLPacketMaker now
makes use of this feature.

Revision 1.6 - (view) (annotate) - [select for diffs]
Tue Nov 14 10:15:54 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.5: +13 -1 lines
Diff to previous 1.5
This version still contains a main method for testing purposes.
It works fine, creating an XMLPacket object.  Run with test.xml
and you will find that the HashMap stores values with a heirarchical
structure, such as bung.ping.value1="Can You".

Revision 1.5 - (view) (annotate) - [selected]
Tue Nov 14 10:04:01 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.4: +24 -2 lines
Diff to previous 1.4
Incorporated the XMLPacket features into the XMLPacketMaker class.
Now reads simple parameter values from XML into the hash map.

Revision 1.4 - (view) (annotate) - [select for diffs]
Tue Nov 14 09:48:06 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 , to selected 1.5
Created the XMLPacket class.  This uses a hash map to store and access
values by key strings.

Revision 1.3 - (view) (annotate) - [select for diffs]
Tue Nov 14 09:32:31 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.2: +119 -127 lines
Diff to previous 1.2 , to selected 1.5
Oops, the wrong file was uploaded ;-)
This entry now reflects the previous change.

Revision 1.2 - (view) (annotate) - [select for diffs]
Tue Nov 14 09:18:20 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Changes since 1.1: +11 -11 lines
Diff to previous 1.1 , to selected 1.5
Minor changes with respect to coding specifications.

Revision 1.1 - (view) (annotate) - [select for diffs]
Mon Nov 13 12:31:27 2000 UTC (24 years ago) by pjm2
Branch: MAIN
Diff to selected 1.5
Test program for reading in files containing valid XML structures and
echoing the structured output on screen.

Convenience Links

Links to HEAD: (view) (annotate) Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a