Package sc.fiji.snt.io
Class FlyCircuitLoader
java.lang.Object
sc.fiji.snt.io.FlyCircuitLoader
- All Implemented Interfaces:
RemoteSWCLoader
Absurdly simple importer for retrieving SWC data from
FlyCircuit.
- Author:
- Tiago Ferreira
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the SWC data associated with the specified cell ID as a readergetReconstructionURL(String cellId) Gets the URL of the SWC file associated with the specified cell ID.Gets the collection of Paths for the specified cell IDbooleanChecks whether a connection to the FlyCircuit database can be established.static void
-
Constructor Details
-
FlyCircuitLoader
public FlyCircuitLoader()
-
-
Method Details
-
isDatabaseAvailable
public boolean isDatabaseAvailable()Checks whether a connection to the FlyCircuit database can be established.- Specified by:
isDatabaseAvailablein interfaceRemoteSWCLoader- Returns:
- true, if an HHTP connection could be established, false otherwise
-
getReconstructionURL
Gets the URL of the SWC file associated with the specified cell ID.- Specified by:
getReconstructionURLin interfaceRemoteSWCLoader- Parameters:
cellId- the ID of the cell to be retrieved- Returns:
- the reconstruction URL
-
getReader
Gets the SWC data associated with the specified cell ID as a reader- Specified by:
getReaderin interfaceRemoteSWCLoader- Parameters:
cellId- the ID of the cell to be retrieved- Returns:
- the character stream containing the data, or null if cell ID was not found or could not be retrieved
-
getTree
Gets the collection of Paths for the specified cell ID- Specified by:
getTreein interfaceRemoteSWCLoader- Parameters:
cellId- the ID of the cell to be retrieved- Returns:
- the data for the specified cell as a
Tree, or null if data could not be retrieved
-
main
-