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
IOExceptionpublic Object importContent(InputStream theInput) throws IOException
InputStream to a Reader and then
parses.importContent in interface com.affymetrix.genoviz.parser.ContentParserIOExceptionprotected boolean parseLabel(StreamTokenizer theTokens, Object theLabeledGlyph) throws IOException
IOExceptionprotected com.affymetrix.genoviz.datamodel.Range parseRange(StreamTokenizer theTokens) throws IOException
IOExceptionRangeprotected int[] parseDirectedRange(StreamTokenizer theTokens) throws IOException
IOExceptionprotected String parseString(StreamTokenizer theTokens) throws IOException
IOExceptionprotected void parseLine(int theLineNumber,
StreamTokenizer theTokens)
throws IOException
IOExceptionprotected void parseFeatureType(StreamTokenizer theTokens) throws IOException
IOExceptionpublic void exportContent(OutputStream s, Object o)
exportContent in interface com.affymetrix.genoviz.parser.ContentParserpublic static void main(String[] argv)
Copyright © 2021. All rights reserved.