public interface DocumentedIOHandler extends Documented
Handlers implementing this class should moreover provide the
ConfigMethod
annotation on all mutator
methods that ought to be documented in the user documentation.
TableBuilder
s and
StarTableWriter
s don't have to implement
this class in order to be used for reading/writing tables,
but they are expected to if they are going to be one of the handlers
installed by default in the I/O controller classes and hence
documented in the STIL/STILTS/TOPCAT user documentation.
Modifier and Type | Method and Description |
---|---|
boolean |
docIncludesExample()
Indicates whether the serialization of some (short) example table
should be added to the user documentation for this handler.
|
String[] |
getExtensions()
Returns the list of filename extensions recognised by this handler.
|
static boolean |
matchesExtension(DocumentedIOHandler handler,
String filename)
Utility method that returns true if the supplied filename
has one of the extensions associated with a given handler
(ends with a "." plus the extension), matched case-insensitively.
|
default String |
readText(String resourceName)
Utility method to read text from a resource file.
|
static String |
toLink(String url)
Utility method that returns the text of an XML <A> element
whose href and content are both given by a supplied URL.
|
getXmlDescription
String[] getExtensions()
boolean docIncludesExample()
Documented.getXmlDescription()
method already includes some example output, should return false.default String readText(String resourceName)
resourceName
- name of resource relative to the class
of this objectRuntimeException
- if the resource doesn't exist or
something else goes wrongstatic boolean matchesExtension(DocumentedIOHandler handler, String filename)
handler
- handler with extensionsfilename
- name to testCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.