Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Does anyone know a good library/jar to parse RSS/Atom Feeds?
I'd like to stuff a URL in, and want to get the news-items in a homogenous way. (Means: it should not matter whether the Source contains an Atom or RSS feed. I just want "Items" back.)
After browsing on SO, I came up with ROME, but it seems to be chaotic at the moment (no download for example), and is a pure Java solution. Scala would be preferred, but Java is quite okay if nothing Scala-specific exists. Also, it should be a single JAR Library, since I don't use Maven etc.
PS: It's not for Android, just for a good old desktop app.
EDIT: To be more clear, I already know how to get the content from resources as XML. I want to parse them! Autodetect whether it's Atom or some RSS and give me back a uniform list of items.
Have you checked out Dispatch? It doesn't have any RSS/Atom features built in per se, but you should be able to handle the response text as a scala.xml.NodeSeq and do whatever you need.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
This post was edited and submitted for review 11 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I was wondering if there exists any Java library that contains all HTML tags. I am writing selenium tests for fairly complex web sites using the Java binding, and often needing to find an element by tag name. I thought having a class with constants referring to each tag name would be nice. Since there is a finite list of HTML tags, I'm thinking this must already exist. I could begin writing mine, of course, but why reinvent the wheel if there is one out there. I have checked the Selenium Java API documentation but can't find any. Any suggestions?
No, I do not believe such a library is currently available.
Although there are a finite number of STANDARD tags in html, there is also the ability to have USER DEFINED tags. There are also different versions of HTML (current is HTML5) that support many different tags For example the tag is no longer supported in HTML5, but does exist in older versions of HTML. These two factors may make it increasingly difficult to create a definitive library of all tags.
The best option would probably be to create your own, personalized library for the project.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am using MireDot for generating documentation for my REST service.
While it is awesome for generating the models and general information on the resources, I don't believe it currently has a way of "nicely" adding concrete example input/output.
That said, I am resorting to pure JavaDoc for writing the Json examples. And it's painful.
Does anybody know of any tool out there that helps write JavaDoc... and in particular makes it easy to insert formatted JSON/etc into it?
This is an old question I posted when I was just experimenting with ways to document an API.
Eventually I switched to Apiary over MireDot, which makes this task trivial. The reason for this transition was mostly to decouple the JavaDoc from the actual API documentation, as I found coupling those two can create a very messy code-base for a sophisticated API that requires a lot of documentation.
Ideally would have built documentation using an all-encompassing API management platform like Mashery or the like, but at the time that was not an option.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to develop an eBook reader app. What are some good libraries available to parse formats like .azw, .mobi, .pdf etc.?
As Ranhiru said, here and here you can see how PDFs are parsed.
For .mobi, however, there is no library, so you'll have to parse the format yourself. A full specification of the format can be read on the mobileread wiki.
With .azw files, it's different: if the Kindle ebook is DRM-free, then its format coincides with the .mobi one, i.e. they are absolutely interchangeable. Otherwise, it's very difficult to do, since you'll also have to generate a Kindle PID and perform the de-DRM-ing of the .azw file. There's a guide on how to do that on the desktop here. However, it is strongly not recommended, since it breaks the whole point of DRM and is illegal pretty much everywhere.
For mobi there isn't complete spec sheet available, but you should directly jump into PDB format which is extended & used by MOBI
http://jola.comm.pl/palm/opispdb.htm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm developing application which needs to get details from AutoCAD DXF file. Is there any specific API which support this task. Actually in my project I need to get building structures to my java application and I need to add some more details to those graphs So can some one provide your experience about this ?
A quick Google search on java dxf yields the ycad library. I have never used it, I don't know how well it works.
http://caff.de/dxfviewer/ supports reading DXF files.
The reading of an AutoCAD DXF file is not a trivial task. The contained entities can be affected by the coordinate systems, the blocks can be hierarchycal, etc. When I wrote my DXF importer, I read the file sequentialy, built a DXF DOM and then converted it into my own format. You can find the document specification here:
http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
http://www.autodesk.com/techpubs/autocad/acadr14/dxf/dxf_reference.htm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am looking for a good library or some project that has been done in the area of SMS text normalization. I have found some good research projects like this one.
I am using Java as the programming language.
The concept in a nutshell is to handle SMS based text like "tel him 2 go home nw" and convert it to normal english language text "tell him to go home now".
Why not just to download a dictionary from a site like this: http://smsdictionary.co.uk/abbreviations and use a string replacement?
Dictionary substitution does not cut it, since it misses context in translations. e.g. do you translate '2' to 'to', 'too' or 'two'?
You can get a corpus and train a statistical model yourself, either using Moses (http://www.statmt.org/moses/) or Phrasal (http://nlp.stanford.edu/software/phrasal/).
As an author of the Stanford one (http://www-nlp.stanford.edu/sms/translate.php), I could be convinced to offer a REST based API for such a service, but I don't know the demand for it...