Class VOTableWrapper
java.lang.Object
|
+--VOTableWrapper
- public class VOTableWrapper
- extends java.lang.Object
This is a helper class that helps with parsing. Instead of dealing
with the factory and so on from Breeze, you just give it the filename.
From there, it sees if the name begins with http:// and if so opens the URL.
If not, it tries to open it as a file.
|
Constructor Summary |
VOTableWrapper(java.lang.String name,
java.io.PrintWriter out)
The constructor that does the parsing of the XML. |
|
Method Summary |
java.lang.String |
getLastError()
Tells you about any errors -- parsing, file opeing, etc. |
Votable |
getVotable()
This is where you get the payload -- the Breeze object representing
the Votable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VOTableWrapper
public VOTableWrapper(java.lang.String name,
java.io.PrintWriter out)
- The constructor that does the parsing of the XML.
You can give a non-null PrintWriter if you want a running commentary
of the parsing process.
getLastError
public java.lang.String getLastError()
- Tells you about any errors -- parsing, file opeing, etc.
Do not forget to check this for non-null after the parsing!
getVotable
public Votable getVotable()
- This is where you get the payload -- the Breeze object representing
the Votable. It may be null if something went wrong in the parsing.