public abstract class TopcatSender extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TOPCAT_LOAD_MTYPE |
| Constructor and Description |
|---|
TopcatSender(org.astrogrid.samp.client.HubConnection connection,
String topcatId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Unregisters the client associated with this sender.
|
static TopcatSender |
createSender(org.astrogrid.samp.client.ClientProfile profile)
Attempts to create and return a TopcatSender for a given profile.
|
protected abstract org.astrogrid.samp.Message |
createSendMessage(String uloc,
String format)
Returns a Message that can be sent to TOPCAT to receive a table.
|
org.astrogrid.samp.Response |
sendTable(String location,
String format)
Instructs an external TOPCAT application to load a table with a given
location and table format.
|
public static final String TOPCAT_LOAD_MTYPE
public TopcatSender(org.astrogrid.samp.client.HubConnection connection,
String topcatId)
connection - registered connection to hubtopcatId - client ID for currently registered TOPCAT clientpublic org.astrogrid.samp.Response sendTable(String location, String format) throws IOException, org.astrogrid.samp.client.SampException
location - table URL or filenameformat - STIL-friendly table format (null for auto)IOExceptionorg.astrogrid.samp.client.SampExceptionprotected abstract org.astrogrid.samp.Message createSendMessage(String uloc, String format) throws IOException
uloc - location, if possible in the form of a URLformat - STIL-friendly table format name; may be an empty string
(for auto-detection) but may not be nullIOExceptionpublic void close()
public static TopcatSender createSender(org.astrogrid.samp.client.ClientProfile profile)
profile - client profileCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.