Changeset 164 for trunk/corelib/src/org/bridgedb/file/IDMapperText.java
- Timestamp:
- 08/19/09 13:33:04 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/corelib/src/org/bridgedb/file/IDMapperText.java
r156 r164 42 42 } 43 43 44 private static class Driver implements org.bridgedb.Driver 44 /** Knows how to instantiate IDMapperText. */ 45 private static final class Driver implements org.bridgedb.Driver 45 46 { 46 private Driver() {} // prevent outside instantiation; 47 /** prevent outside instantiation. */ 48 private Driver() {} 47 49 50 /** {@inheritDoc} */ 48 51 public IDMapper connect(String location) throws IDMapperException 49 52 { … … 110 113 } 111 114 115 /** 116 * parse the separator list part of the connection string. 117 * \@ or \t will be unescaped. 118 * @param config the connection string to parse 119 * @param head the section to look for, either dssep or idsep 120 * @return separators 121 */ 112 122 private char[] parseConfig(String config, String head) { 113 Set<Character> delimiters = new HashSet ();123 Set<Character> delimiters = new HashSet<Character>(); 114 124 Pattern p = Pattern.compile(head+"=(.|\\t|\\@),", 115 125 Pattern.CASE_INSENSITIVE); … … 142 152 } 143 153 144 pr otectedfinal URL url;145 pr otectedchar[] dataSourceDelimiters;146 pr otectedchar[] idDelimiters;147 pr otectedboolean transitivity;154 private final URL url; 155 private char[] dataSourceDelimiters; 156 private char[] idDelimiters; 157 private boolean transitivity; 148 158 149 159 /** … … 205 215 /** 206 216 * Free search is not supported for delimiter-text file. 217 * This will throw UnsupportedOperationException 218 * @param text ignored 219 * @param limit ignored 220 * @return does not return 221 * @throws IDMapperException will not be thrown 207 222 */ 208 223 public Set<Xref> freeSearch (String text, int limit) throws IDMapperException {
