public class OboFileParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OboFileParser.SOPair |
Modifier and Type | Field and Description |
---|---|
protected int |
bytesRead |
protected SimpleDateFormat |
dateFormat |
protected static Map<Character,Character> |
escapeChars |
protected String |
line |
protected int |
linenum |
protected StringBuffer |
tempBuffer |
protected int |
totalSize |
protected static Map<Character,Character> |
unescapeChars |
Constructor and Description |
---|
OboFileParser() |
Modifier and Type | Method and Description |
---|---|
void |
addOboFileEventListener(OboFileEventListener listener) |
static String |
escape(String str,
boolean escapespaces) |
static int |
findUnescaped(String str,
char toChar) |
static int |
findUnescaped(String str,
char toChar,
int startIndex,
int endIndex) |
static int |
findUnescaped(String str,
char toChar,
int startindex,
int endindex,
boolean honorQuotes) |
protected Map<String,Object>[] |
getDbxrefList(String line,
int startoffset,
int endoffset) |
protected int |
getNestedValue(org.biojava.nbio.ontology.obo.NestedValue nv,
String str,
int startIndex) |
List<OboFileEventListener> |
getOboFileEventListener() |
protected StringBuffer |
getTempBuffer() |
static boolean |
isEscapeStarter(char c) |
static boolean |
isQuote(char c) |
void |
parseOBO(BufferedReader oboFile)
parse an ontology file
|
protected Map<String,Object> |
parseXref(String line,
int startoffset,
int endoffset) |
protected OboFileParser.SOPair |
readQuotedString(String value,
int startIndex,
int stopIndex,
char terminatingChar,
boolean requireQuotes,
boolean legalEndOfLine) |
String |
unescape(String str) |
OboFileParser.SOPair |
unescape(String str,
char toChar,
int startindex,
boolean mustFindChar) |
OboFileParser.SOPair |
unescape(String str,
char toChar,
int startindex,
int endindex,
boolean mustFindChar) |
protected String line
protected int linenum
protected int totalSize
protected int bytesRead
protected StringBuffer tempBuffer
protected SimpleDateFormat dateFormat
public void addOboFileEventListener(OboFileEventListener listener)
public List<OboFileEventListener> getOboFileEventListener()
public void parseOBO(BufferedReader oboFile) throws IOException
oboFile
- IOException
IOException
protected Map<String,Object>[] getDbxrefList(String line, int startoffset, int endoffset) throws IOException
IOException
protected Map<String,Object> parseXref(String line, int startoffset, int endoffset) throws IOException
IOException
public String unescape(String str) throws IOException
IOException
public OboFileParser.SOPair unescape(String str, char toChar, int startindex, boolean mustFindChar) throws IOException
IOException
public OboFileParser.SOPair unescape(String str, char toChar, int startindex, int endindex, boolean mustFindChar) throws IOException
IOException
public static int findUnescaped(String str, char toChar)
public static int findUnescaped(String str, char toChar, int startIndex, int endIndex)
public static int findUnescaped(String str, char toChar, int startindex, int endindex, boolean honorQuotes)
public static boolean isEscapeStarter(char c)
public static boolean isQuote(char c)
protected StringBuffer getTempBuffer()
protected OboFileParser.SOPair readQuotedString(String value, int startIndex, int stopIndex, char terminatingChar, boolean requireQuotes, boolean legalEndOfLine) throws IOException
IOException
protected int getNestedValue(org.biojava.nbio.ontology.obo.NestedValue nv, String str, int startIndex) throws IOException
IOException
Copyright © 2000–2016 BioJava. All rights reserved.