Class FlyCircuitLoader

java.lang.Object
sc.fiji.snt.io.FlyCircuitLoader
All Implemented Interfaces:
RemoteSWCLoader

public class FlyCircuitLoader extends Object implements RemoteSWCLoader
Absurdly simple importer for retrieving SWC data from FlyCircuit.
Author:
Tiago Ferreira
  • Constructor Details

    • FlyCircuitLoader

      public FlyCircuitLoader()
  • Method Details

    • isDatabaseAvailable

      public boolean isDatabaseAvailable()
      Checks whether a connection to the FlyCircuit database can be established.
      Specified by:
      isDatabaseAvailable in interface RemoteSWCLoader
      Returns:
      true, if an HHTP connection could be established, false otherwise
    • getReconstructionURL

      public String getReconstructionURL(String cellId)
      Gets the URL of the SWC file associated with the specified cell ID.
      Specified by:
      getReconstructionURL in interface RemoteSWCLoader
      Parameters:
      cellId - the ID of the cell to be retrieved
      Returns:
      the reconstruction URL
    • getReader

      public BufferedReader getReader(String cellId)
      Gets the SWC data associated with the specified cell ID as a reader
      Specified by:
      getReader in interface RemoteSWCLoader
      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

      public Tree getTree(String cellId)
      Gets the collection of Paths for the specified cell ID
      Specified by:
      getTree in interface RemoteSWCLoader
      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

      public static void main(String... args)