public abstract class DocumentedStreamStarTableWriter extends java.lang.Object implements StarTableWriter, DocumentedIOHandler
Modifier | Constructor and Description |
---|---|
protected |
DocumentedStreamStarTableWriter(java.lang.String[] extensions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getExtensions()
Returns the list of filename extensions recognised by this handler.
|
boolean |
looksLikeFile(java.lang.String filename)
Indicates whether the destination is of a familiar form for this
kind of writer.
|
void |
writeStarTable(StarTable table,
java.lang.String location,
StarTableOutput sto)
Writes a StarTable object to a given location.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormatName, getMimeType, writeStarTable
docIncludesExample, matchesExtension, readText, toLink
getXmlDescription
protected DocumentedStreamStarTableWriter(java.lang.String[] extensions)
extensions
- list of lower-cased filename extensions,
excluding the '.' characterpublic java.lang.String[] getExtensions()
DocumentedIOHandler
getExtensions
in interface DocumentedIOHandler
public boolean looksLikeFile(java.lang.String filename)
StarTableWriter
looksLikeFile
in interface StarTableWriter
filename
- the location name (probably filename)public void writeStarTable(StarTable table, java.lang.String location, StarTableOutput sto) throws java.io.IOException
StarTableWriter
StreamStarTableWriter
provides a suitable implementation
for this case.writeStarTable
in interface StarTableWriter
table
- table to writelocation
- destination for startabsto
- StarTableOutput which dispatched this requestTableFormatException
- if startab cannot be written
to locationjava.io.IOException
- if there is some I/O error