|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.table.StreamStarTableWriter
uk.ac.starlink.mirage.MirageTableWriter
public class MirageTableWriter
| Constructor Summary | |
|---|---|
MirageTableWriter()
|
|
| Method Summary | |
|---|---|
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 filename)
Indicates whether the destination is of a familiar form for this kind of writer. |
void |
writeStarTable(StarTable startab,
java.io.OutputStream out)
Writes a StarTable object to a given output stream. |
| Methods inherited from class uk.ac.starlink.table.StreamStarTableWriter |
|---|
writeStarTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MirageTableWriter()
| Method Detail |
|---|
public void writeStarTable(StarTable startab,
java.io.OutputStream out)
throws java.io.IOException
StarTableWriterBufferedOutputStream), 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.
startab - the table to writeout - the output stream to which startab should be
written
TableFormatException - if this table cannot be written to a
stream
java.io.IOException - if there is some I/O errorpublic boolean looksLikeFile(java.lang.String filename)
StarTableWriter
filename - the location name (probably filename)
public java.lang.String getFormatName()
StarTableWriter
public java.lang.String getMimeType()
StarTableWriterapplication/octet-stream"
(for binary formats) or "text/plain" for ASCII ones)
is recommended.
|
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 | ||||||||