public class FeatherTableWriter extends StreamStarTableWriter
Constructor and Description |
---|
FeatherTableWriter()
Default constructor.
|
FeatherTableWriter(boolean isColumnOrder,
StoragePolicy storage)
Constructs a writer with custom configuration.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormatName()
Gives the name of the format which is written by this writer.
|
java.lang.String |
getMimeType()
Returns a string suitable for use as the value of a MIME
Content-Type header.
|
boolean |
looksLikeFile(java.lang.String loc)
Returns true for files with extension ".fea" or ".feather".
|
void |
writeStarTable(StarTable table,
java.io.OutputStream out)
Writes a StarTable object to a given output stream.
|
writeStarTable
public FeatherTableWriter()
public FeatherTableWriter(boolean isColumnOrder, StoragePolicy storage)
isColumnOrder
- true for column-oriented output,
false for row-oriented outputstorage
- storage policy used if required
(row-oriented output only)public java.lang.String getFormatName()
StarTableWriter
public java.lang.String getMimeType()
StarTableWriter
application/octet-stream
"
(for binary formats) or "text/plain
" for ASCII ones)
is recommended.public boolean looksLikeFile(java.lang.String loc)
loc
- the location name (probably filename)public void writeStarTable(StarTable table, java.io.OutputStream out) throws java.io.IOException
StarTableWriter
BufferedOutputStream
), and should not close it
at the end of the call.
Not all table writers are capable of writing to a stream;
an implementation may throw a TableFormatException
to
indicate that it cannot do so.
table
- the table to writeout
- the output stream to which startab should be
writtenTableFormatException
- if this table cannot be written to a
streamjava.io.IOException
- if there is some I/O error