public class NarcissusParser extends Object implements com.affymetrix.genoviz.parser.ContentParser
Modifier and Type | Field and Description |
---|---|
protected Hashtable |
featureTypes |
protected com.affymetrix.genoviz.bioviews.MapGlyphFactory |
labelFactory |
protected Hashtable |
positions |
protected Adjustable |
zoomer |
Constructor and Description |
---|
NarcissusParser()
constructs a parser
|
Modifier and Type | Method and Description |
---|---|
void |
exportContent(OutputStream s,
Object o) |
Object |
importContent(InputStream theInput)
converts an
InputStream to a Reader and then
parses. |
Object |
importContent(Reader theInput) |
Object |
importContent(URL url)
imports Narcissus format data from an internet.
|
static void |
main(String[] argv)
for testing.
|
protected int[] |
parseDirectedRange(StreamTokenizer theTokens)
parses a pair if integers representing the beginning and end of a
directed range of integers.
|
protected void |
parseFeatureType(StreamTokenizer theTokens)
parses a feature type and adds it to a list of such types.
|
protected boolean |
parseLabel(StreamTokenizer theTokens,
Object theLabeledGlyph)
parses a label.
|
protected void |
parseLine(int theLineNumber,
StreamTokenizer theTokens) |
protected com.affymetrix.genoviz.datamodel.Range |
parseRange(StreamTokenizer theTokens)
parses a pair if integers representing the beginning and end of a range
of integers.
|
protected String |
parseString(StreamTokenizer theTokens) |
protected Hashtable positions
protected com.affymetrix.genoviz.bioviews.MapGlyphFactory labelFactory
protected Hashtable featureTypes
protected Adjustable zoomer
public Object importContent(URL url)
url
- the Uniform Resourse Locator pointing to the data.public Object importContent(Reader theInput) throws IOException
IOException
public Object importContent(InputStream theInput) throws IOException
InputStream
to a Reader
and then
parses.importContent
in interface com.affymetrix.genoviz.parser.ContentParser
IOException
protected boolean parseLabel(StreamTokenizer theTokens, Object theLabeledGlyph) throws IOException
IOException
protected com.affymetrix.genoviz.datamodel.Range parseRange(StreamTokenizer theTokens) throws IOException
IOException
Range
protected int[] parseDirectedRange(StreamTokenizer theTokens) throws IOException
IOException
protected String parseString(StreamTokenizer theTokens) throws IOException
IOException
protected void parseLine(int theLineNumber, StreamTokenizer theTokens) throws IOException
IOException
protected void parseFeatureType(StreamTokenizer theTokens) throws IOException
IOException
public void exportContent(OutputStream s, Object o)
exportContent
in interface com.affymetrix.genoviz.parser.ContentParser
public static void main(String[] argv)
Copyright © 2021. All rights reserved.