public class NeuroMorphoLoader extends java.lang.Object implements RemoteSWCLoader
Constructor and Description |
---|
NeuroMorphoLoader() |
Modifier and Type | Method and Description |
---|---|
void |
enableSourceVersion(boolean enable) |
java.io.BufferedReader |
getReader(java.lang.String cellId)
Gets the SWC data ('CNG version') associated with the specified cell ID as
a reader
|
java.lang.String |
getReconstructionURL(java.lang.String cellId)
Gets the URL of the SWC file ('CNG version') associated with the specified
cell ID.
|
Tree |
getTree(java.lang.String cellId)
Gets the collection of Paths for the specified cell ID
|
boolean |
isDatabaseAvailable()
Checks whether a connection to the NeuroMorpho database can be established.
|
static void |
main(java.lang.String... args) |
public boolean isDatabaseAvailable()
isDatabaseAvailable
in interface RemoteSWCLoader
public java.lang.String getReconstructionURL(java.lang.String cellId)
getReconstructionURL
in interface RemoteSWCLoader
cellId
- the ID of the cell to be retrievedpublic java.io.BufferedReader getReader(java.lang.String cellId)
getReader
in interface RemoteSWCLoader
cellId
- the ID of the cell to be retrievedpublic void enableSourceVersion(boolean enable)
public Tree getTree(java.lang.String cellId)
getTree
in interface RemoteSWCLoader
cellId
- the ID of the cell to be retrievedTree
,
or null if data could not be retrievedpublic static void main(java.lang.String... args) throws java.io.IOException
java.io.IOException