|
From: Joseph S. <acr...@io...> - 2003-02-13 21:22:57
|
RSSReader.parseInput() :
Document d = new Document(in)
will throw an exception if using a plain FileReader, because "mark()"
isn't supported.
[java] electric.xml.ParseException: java.io.IOException: mark() not supported
[java] line 1, char 0: ...
[java] at electric.xml.NodeReader.parse(NodeReader.java:93)
[java] at electric.xml.Document.<init>(Document.java:213)
[java] at com.rsslibj.elements.RSSReader.parseInput(Unknown Source)
As you can see, this is a bug in EXML, because they should be checking.
the fix is easy
if (!in.markSupported()) in = new BufferedReader(in);
I suppose we should add that line into parseInput, but someone should
file a bug note to EXML for that. They have their own "FastBufferedReader"
they use when you pass a File into it instead of a Reader, but they
don't use it if you pass in a Reader.
Joe
--
----------------------------------------------------------------------
Joseph Shelby mailto:acr...@io...
45533 Stablemates Ct. http://www.io.com/~acroyear
Sterling, VA 20164 (703) 404-0314 | 247-7868
Software Engineer, ISX Corporation, Arlington, VA
"The people of England will permit anything...except cruelty to horses
and a rise in the price of beer." -- Return of the Musketteers (1989)
----------------------------------------------------------------------
|