/** * Retrieve the name of every column in the table with the given index. * Tables are indexed from 0 to <code>{@link #getTableCount()} - 1</code>. */ public String[] getColumnNames(int tableIndex) { String[] columnNames = new String[columns[tableIndex].length]; for (int i=0; i<columnNames.length; i++) { columnNames[i] = columns[tableIndex][i].getName(); } return columnNames; }
/** * Retrieve the type for every column in the table with the given index. * Tables are indexed from 0 to <code>{@link #getTableCount()} - 1</code>. * * Every Object in the arrays returned by {@link #getTableData(int)} and * {@link #getTableData(String)} will be an instance of the corresponding * Class in the Class[] returned by this method. */ public Class[] getColumnTypes(int tableIndex) { Class[] types = new Class[columns[tableIndex].length]; for (int i=0; i<types.length; i++) { types[i] = columns[tableIndex][i].getType(); } return types; }
/** * Return whether or not this map represents a fixed-type column. * Fixed-type columns have type "I", "F", "D", or "L". */ public boolean isFixedMap() { char type = col.getTypeString().charAt(0); return type != 'S' && type != 'B'; }
columns[i][col] = new Column(cols[col]);
char type = col.getTypeString().charAt(0);
byte[] buf = new byte[byteCounts[i]]; stream.read(buf); char type = col.getTypeString().charAt(0); values.add(type == 'B' ? buf : new String(buf, Constants.ENCODING));