kenai_tools 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/.idea/.name +1 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/encodings.xml +5 -0
- data/.idea/kenai_tools.iml +40 -0
- data/.idea/misc.xml +8 -0
- data/.idea/modules.xml +9 -0
- data/.idea/vcs.xml +7 -0
- data/Gemfile +4 -0
- data/README.md +28 -0
- data/Rakefile +2 -0
- data/bin/dlutil +139 -0
- data/kenai_tools.gemspec +43 -0
- data/lib/kenai_tools/downloads_client.rb +241 -0
- data/lib/kenai_tools/kenai_client.rb +168 -0
- data/lib/kenai_tools/version.rb +3 -0
- data/lib/kenai_tools.rb +7 -0
- data/spec/downloads_client_spec.rb +302 -0
- data/spec/fixtures/data/irs_docs/irs-form-1040.pdf +0 -0
- data/spec/fixtures/data/irs_docs/irs-p555.pdf +0 -0
- data/spec/fixtures/data/sax.tgz +0 -0
- data/spec/fixtures/data/sax2/.cvsignore +9 -0
- data/spec/fixtures/data/sax2/CHANGES +245 -0
- data/spec/fixtures/data/sax2/COPYING +12 -0
- data/spec/fixtures/data/sax2/ChangeLog +666 -0
- data/spec/fixtures/data/sax2/Makefile +77 -0
- data/spec/fixtures/data/sax2/README +62 -0
- data/spec/fixtures/data/sax2/build.xml +68 -0
- data/spec/fixtures/data/sax2/src/SAXDump.java +238 -0
- data/spec/fixtures/data/sax2/src/SAXTest.java +351 -0
- data/spec/fixtures/data/sax2/src/org/xml/sax/Attributes.java +257 -0
- data/spec/fixtures/data/sax2/src/org/xml/sax/package.html +297 -0
- data/spec/fixtures/data/sax2r2.jar +0 -0
- data/spec/fixtures/data/text1.txt +4 -0
- data/spec/spec_helper.rb +9 -0
- metadata +222 -0
@@ -0,0 +1,245 @@
|
|
1
|
+
SAX2: Changes -*-Outline-*-
|
2
|
+
|
3
|
+
(For more details, see the ChangeLog in this directory.)
|
4
|
+
|
5
|
+
* Changes from SAX 2.0.2 prerelease 2 to SAX 2.0.2 final (sax2r3)
|
6
|
+
|
7
|
+
[none]
|
8
|
+
|
9
|
+
|
10
|
+
* Changes from SAX 2.0.2 prerelease 1 to prerelease2 (SAX2r3-pre2)
|
11
|
+
|
12
|
+
- remove JavaDoc for an exception that isn't thrown in Namespace
|
13
|
+
support
|
14
|
+
|
15
|
+
- fix some mismatched @param tags
|
16
|
+
|
17
|
+
- fix a broken JavaDoc link
|
18
|
+
|
19
|
+
- reformat some JavaDoc
|
20
|
+
|
21
|
+
|
22
|
+
* Changes from SAX 2.0.1 (SAX2r2) to SAX 2.0.2 (SAX2r3) prerelease 1
|
23
|
+
|
24
|
+
- removed the docs/ directory, which had fallen out of sync; the
|
25
|
+
changes are now in this file, and information on features and
|
26
|
+
properties is in src/org/xml/sax/package.html
|
27
|
+
|
28
|
+
- DeclHandler.externalEntityDecl now requires the parser to return the
|
29
|
+
absolute system identifier, for consistency with
|
30
|
+
DTDHandler.unparsedEntityDecl: this may cause some incompatibilities
|
31
|
+
|
32
|
+
- the use-entity-resolver2 core feature is now read-write with a
|
33
|
+
default value of true
|
34
|
+
|
35
|
+
- src/org/xml/sax/package.html now clarifies read/write status of
|
36
|
+
properties and features
|
37
|
+
|
38
|
+
- the xmlns-uris feature uses "xmlns" for the local part of the
|
39
|
+
attribute declaring a default Namespace
|
40
|
+
|
41
|
+
- add a read-only feature to check for XML 1.1 support
|
42
|
+
|
43
|
+
- add a read-only string property to return the version number of the
|
44
|
+
document being parsed
|
45
|
+
|
46
|
+
- add a feature to request Unicode normalization checking (false by
|
47
|
+
default)
|
48
|
+
|
49
|
+
- specify that error() should be used to report normalization problems
|
50
|
+
|
51
|
+
- explicitly note that endDocument() might not be called after a fatal
|
52
|
+
error
|
53
|
+
|
54
|
+
- allow getEncoding() and getXMLVersion() to return null if
|
55
|
+
information is not available.
|
56
|
+
|
57
|
+
|
58
|
+
* Changes from SAX 2.0 to SAX 2.0 r2 prerelease
|
59
|
+
|
60
|
+
- Added simple test program src/SAXTest.java
|
61
|
+
|
62
|
+
- Synchronized static methods in XMLReaderFactory for thread
|
63
|
+
safety.
|
64
|
+
|
65
|
+
- Fixed bug in ParserAdapter that reported an incorrect error when
|
66
|
+
an attribute using a Namespace prefix appeared before the Namespace
|
67
|
+
declaration.
|
68
|
+
|
69
|
+
- Fixed bugs in AttributesImpl that caused infinite loops or
|
70
|
+
prevented removing attributes.
|
71
|
+
|
72
|
+
- Specified that InputSource.getSystemId should return null (not an
|
73
|
+
empty string) when no system ID is available.
|
74
|
+
|
75
|
+
- Modified DefaultHandler.resolveEntity to throw IOException, as in
|
76
|
+
the interface specification.
|
77
|
+
|
78
|
+
- Added default constructors to SAXException,
|
79
|
+
SAXNotRecognizedException, and SAXNotSupportedException.
|
80
|
+
|
81
|
+
|
82
|
+
* Changes from SAX 2.0prerelease to SAX 2.0
|
83
|
+
|
84
|
+
- Documented the fact that parse() and event handlers are
|
85
|
+
synchronous.
|
86
|
+
|
87
|
+
- Documented the fact that xml: prefix never has
|
88
|
+
start/endPrefixMapping events.
|
89
|
+
|
90
|
+
|
91
|
+
* Changes from SAX 2.0beta2 to SAX 2.0prerelease
|
92
|
+
|
93
|
+
- If the org.xml.sax.driver property is not specified but the SAX
|
94
|
+
org.xml.sax.parser property is specified,
|
95
|
+
XMLReaderFactory.createXMLReader() will attempt to create an XML1
|
96
|
+
Parser and then wrap it in a ParserAdapter.
|
97
|
+
|
98
|
+
- DefaultHandler now throws a SAXException for its notationDecl and
|
99
|
+
unparsedEntityDecl methods, so that they can be subclassed properly.
|
100
|
+
|
101
|
+
- Bug fixed in AttributesImpl; last attribute can now be removed.
|
102
|
+
|
103
|
+
- Added setAttributes method AttributesImpl to simplify reusing an
|
104
|
+
object.
|
105
|
+
|
106
|
+
- SAXParseException now allows a null locator argument in its
|
107
|
+
constructors.
|
108
|
+
|
109
|
+
- Specified that the ContentHandler skippedEntity method will have an
|
110
|
+
entity name of "[dtd]" for the external DTD subset.
|
111
|
+
|
112
|
+
- Specified that the ContentHandler processingInstruction method will
|
113
|
+
exclude whitespace between the target and data.
|
114
|
+
|
115
|
+
- In NamespaceSupport, setting the "" prefix to "" removes any default
|
116
|
+
mapping, and changed getPrefix, getPrefixes so that they will not
|
117
|
+
return the default prefix.
|
118
|
+
|
119
|
+
- In Attributes, renamed getRawName to getQName. Likewise, in
|
120
|
+
AttributesImpl, renamed setRawName to setQName.
|
121
|
+
|
122
|
+
- Removed the org.xml.sax.ext package into a separate distribution,
|
123
|
+
SAX2-ext. The DeclHandler and LexicalHandler classes are no longer
|
124
|
+
part of the core SAX2 distribution.
|
125
|
+
|
126
|
+
- Added docs/quick-start.html
|
127
|
+
|
128
|
+
- Modified XMLReaderAdapter, ParserAdapter, and XMLFilterImpl so that
|
129
|
+
parse(String) actually invokes parse(InputSource): this way, only
|
130
|
+
parse(InputSource) needs to be overridden in subclasses.
|
131
|
+
|
132
|
+
- Added getPrefix(String) and getPrefixes(String) methods to
|
133
|
+
NamespaceSupport to look up currently-mapped prefixes.
|
134
|
+
|
135
|
+
|
136
|
+
* Changes from SAX 2.0beta to SAX 2.0beta2
|
137
|
+
|
138
|
+
- Corrected "raw-names" to "namespace-prefixes" throughout.
|
139
|
+
|
140
|
+
- Removed a JDK 1.2 dependency in
|
141
|
+
org.xml.sax.helpers.NamespaceSupport.
|
142
|
+
|
143
|
+
- Fixed org.xml.sax.helpers.ParserAdapter so that the object can be
|
144
|
+
reused after a previous parse has thrown an exception.
|
145
|
+
|
146
|
+
- Added org.xml.sax.helpers.XMLReaderFactory.
|
147
|
+
|
148
|
+
- Documented limitations of start/endEntity in
|
149
|
+
org.xml.sax.ext.LexicalHandler, and added documentation that
|
150
|
+
LexicalHandler applies to the whole document and that all events
|
151
|
+
must appear between start/endDocument (including start/endDTD).
|
152
|
+
|
153
|
+
- org.xml.sax.helpers.ParserAdapter and
|
154
|
+
org.xml.sax.helpers.XMLReaderAdapter now have a default constructors
|
155
|
+
that use the "org.xml.sax.parser" and "org.xml.sax.driver"
|
156
|
+
properties to locate the embedded SAX1 and SAX2 drivers
|
157
|
+
respectively.
|
158
|
+
|
159
|
+
|
160
|
+
* Changes from SAX 1.0 to SAX 2.0beta
|
161
|
+
|
162
|
+
** API Changes
|
163
|
+
|
164
|
+
The following interfaces and classes have been deprecated, and will
|
165
|
+
be removed from a future version of SAX; they should be used only for
|
166
|
+
interaction with SAX1 drivers or applications:
|
167
|
+
|
168
|
+
- org.xml.sax.Parser
|
169
|
+
|
170
|
+
- org.xml.sax.DocumentHandler
|
171
|
+
|
172
|
+
- org.xml.sax.AttributeList
|
173
|
+
|
174
|
+
- org.xml.sax.HandlerBase
|
175
|
+
|
176
|
+
- org.xml.sax.helpers.ParserFactory
|
177
|
+
|
178
|
+
- org.xml.sax.helpers.AttributeListImpl
|
179
|
+
|
180
|
+
|
181
|
+
The following interfaces and classes have been added to SAX2:
|
182
|
+
|
183
|
+
|
184
|
+
- org.xml.sax.XMLReader (replaces Parser)
|
185
|
+
|
186
|
+
- org.xml.sax.XMLFilter
|
187
|
+
|
188
|
+
- org.xml.sax.ContentHandler (replaces DocumentHandler)
|
189
|
+
|
190
|
+
- org.xml.sax.Attributes (replaces AttributeList)
|
191
|
+
|
192
|
+
- org.xml.sax.SAXNotSupportedException
|
193
|
+
|
194
|
+
- org.xml.sax.SAXNotRecognizedException
|
195
|
+
|
196
|
+
- org.xml.sax.helpers.AttributesImpl (replaces AttributeListImpl)
|
197
|
+
|
198
|
+
- org.xml.sax.helpers.NamespaceSupport
|
199
|
+
|
200
|
+
- org.xml.sax.helpers.XMLFilterImpl
|
201
|
+
|
202
|
+
- org.xml.sax.helpers.ParserAdapter
|
203
|
+
|
204
|
+
- org.xml.sax.helpers.XMLReaderAdapter
|
205
|
+
|
206
|
+
- org.xml.sax.helpers.DefaultHandler (replaces HandlerBase)
|
207
|
+
|
208
|
+
- org.xml.sax.ext.LexicalHandler (since removed)
|
209
|
+
|
210
|
+
- org.xml.sax.ext.DeclHandler (since removed)
|
211
|
+
|
212
|
+
SAX2 contains complete Namespace support, which is available by
|
213
|
+
default from any XMLReader. An XML reader can also optionally supply
|
214
|
+
raw XML qnames. See SAX2: Namespaces for more details.
|
215
|
+
|
216
|
+
An XML reader is fully configurable: it is possible to attempt to
|
217
|
+
query or change the current value of any feature or property.
|
218
|
+
Features and properties are identified by fully-qualified URIs, and
|
219
|
+
parties are free to invent their own names for new extensions. See
|
220
|
+
SAX2: Features and Properties for more details.
|
221
|
+
|
222
|
+
The ContentHandler and Attributes interfaces are similar to the
|
223
|
+
deprecated DocumentHandler and AttributeList interfaces, but they add
|
224
|
+
support for Namespace-related information. ContentHandler also adds a
|
225
|
+
callback for skipped entities, and Attributes adds the ability to look
|
226
|
+
up an attribute's index by name.
|
227
|
+
|
228
|
+
The ParserAdapter class makes a SAX1 Parser behave as a SAX2
|
229
|
+
XMLReader. The XMLReaderAdapter class makes a SAX2 XML reader behave
|
230
|
+
as a SAX1 parser. These two classes should ease the transition from
|
231
|
+
SAX1 to SAX2 by allowing SAX1 drivers and clients to co-exist with
|
232
|
+
SAX2 drivers and clients in the same application.
|
233
|
+
|
234
|
+
** Bug Fixes
|
235
|
+
|
236
|
+
SAXException:
|
237
|
+
Overrode java.lang.Object.toString so that an embedded exception
|
238
|
+
will give a proper String representation for debugging.
|
239
|
+
|
240
|
+
ParserFactory:
|
241
|
+
Added missing closing comment so that private constructor is not
|
242
|
+
commented out.
|
243
|
+
|
244
|
+
|
245
|
+
[end]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
SAX IS FREE
|
2
|
+
-----------
|
3
|
+
|
4
|
+
I hereby abandon any property rights to SAX 2.0 (the Simple API for
|
5
|
+
XML), and release all of the SAX 2.0 source code, compiled code, and
|
6
|
+
documentation contained in this distribution into the Public Domain.
|
7
|
+
SAX comes with NO WARRANTY or guarantee of fitness for any purpose.
|
8
|
+
|
9
|
+
|
10
|
+
David Megginson
|
11
|
+
david@megginson.com
|
12
|
+
2000-05-05
|