public abstract class DocumentedTableBuilder extends java.lang.Object implements TableBuilder, DocumentedIOHandler
| Modifier | Constructor and Description |
|---|---|
protected |
DocumentedTableBuilder(java.lang.String[] extensions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canStream()
Indicates whether this handler can read tables from a stream.
|
java.lang.String[] |
getExtensions()
Returns the list of filename extensions recognised by this handler.
|
boolean |
looksLikeFile(java.lang.String filename)
Indicates whether the given location string is of a familiar form
for this builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanImport, getFormatName, makeStarTable, streamStarTabledocIncludesExample, matchesExtension, readText, toLinkgetXmlDescriptionprotected DocumentedTableBuilder(java.lang.String[] extensions)
extensions - list of lower-cased filename extensions,
excluding the '.' characterpublic java.lang.String[] getExtensions()
DocumentedIOHandlergetExtensions in interface DocumentedIOHandlerpublic boolean looksLikeFile(java.lang.String filename)
TableBuildertrue if there is
a good chance that a file with the given location
can be interpreted by this reader, for instance if it has a
suitable file extension.
This method may be used to guess, on a best-efforts basis, whether this builder is suitable for reading a file from a given location. Attempts may still be made to read inputs for which this method returns false. It is less important for builders that can recognise files by magic number, which is generally preferable to using filenames.
looksLikeFile in interface TableBuilderfilename - the location string, such as a filename or URL
(not null)public abstract boolean canStream()