|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.StarTableOutput
Outputs StarTable objects. This object delegates the actual writing to one of a list of format-specific writer objects whose content can be configured externally. By default, if the corresponding classes are present, the following handlers are installed:
FitsTableWriter
VOTableWriter
TextTableWriter
AsciiTableWriter
HTMLTableWriter
LatexTableWriter
MirageTableWriter
Constructor Summary | |
StarTableOutput()
Constructs a StarTableOutput with a default list of handlers. |
Method Summary | |
List |
getHandlers()
Gets the list of handlers which can actually do table output. |
JDBCHandler |
getJDBCHandler()
Returns the JDBCHandler object used for writing tables to JDBC connections. |
List |
getKnownFormats()
Returns a list of the format strings which are defined by the handlers registered with this object. |
void |
setHandlers(StarTableWriter[] handlers)
Sets the list of handlers which can actually do table output. |
void |
setJDBCHandler(JDBCHandler handler)
Sets the JDBCHandler object used for writing tables to JDBC connections. |
Transferable |
transferStarTable(StarTable startab)
Returns a Transferable object associated with a given StarTable, for use at the drag end of a drag and drop operation. |
void |
writeStarTable(StarTable startab,
String location,
String format)
Writes a StarTable object out to some external storage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StarTableOutput()
Method Detail |
public List getHandlers()
public void setHandlers(StarTableWriter[] handlers)
public void writeStarTable(StarTable startab, String location, String format) throws UnknownTableFormatException, IOException
startab
- the table to outputlocation
- the location at which to write the new table.
This may be a filename or URL, including a jdbc:
protocol if suitable JDBC drivers are installedformat
- a string which indicates in some way what format
should be used for output. This may be the class name of
a StarTableWriter object (which may or may not be
registered with this StarTableOutput), or else
a string which matches the format name of one of the registered
StarTableWriters (first match is used,
case-insensitive, starting substrings OK)
or null to indicate that a handler should be
selected based on the value of location.
Ignored for jdbc:-protocol locations
UnknownTableFormatException
- if no suitable handler is known
IOException
public Transferable transferStarTable(StarTable startab)
startab
- the table which is to be draggedStarTableFactory.makeStarTable(java.awt.datatransfer.Transferable)
public List getKnownFormats()
writeStarTable(uk.ac.starlink.table.StarTable, java.lang.String, java.lang.String)
method.
public JDBCHandler getJDBCHandler()
public void setJDBCHandler(JDBCHandler handler)
handler
- the handler to use
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |