81a71f7c9f93e1bc5ad2f22459b4669496c1b8e6
[jalview.git] / srcjar / javajs / api / GenericCifDataParser.java
1 package javajs.api;
2
3 import java.io.BufferedReader;
4 import java.util.Map;
5
6
7 public interface GenericCifDataParser {
8
9   static final int NONE = -1;
10
11   String fullTrim(String str);
12
13   Map<String, Object> getAllCifData();
14
15   boolean getData() throws Exception;
16
17   String getColumnName(int i);
18
19   int getColumnCount();
20
21   String getFileHeader();
22
23   Object peekToken() throws Exception;
24
25   Object getTokenPeeked();
26
27   Object getColumnData(int i);
28
29   Object getNextDataToken() throws Exception;
30
31   String getNextToken() throws Exception;
32
33   void parseDataBlockParameters(String[] fields, String key, String data, int[] key2col, int[] col2key) throws Exception;
34
35   String readLine();
36
37   GenericCifDataParser set(GenericLineReader reader, BufferedReader br, boolean debugging);
38
39   String toUnicode(String data);
40
41   String skipLoop(boolean doReport) throws Exception;
42
43   String fixKey(String key);
44
45 }