Begin versioning.
[fits.git] / src / nom / tam / fits / TableData.java
1 package nom.tam.fits;
2
3
4 /** This class allows FITS binary and ASCII tables to
5  *  be accessed via a common interface.
6  */
7
8 public interface TableData {
9
10     public abstract Object[] getRow  (int row) throws FitsException;
11     public abstract Object getColumn (int col) throws FitsException;
12     public abstract Object getElement(int row, int col) throws FitsException;
13
14     public abstract void setRow      (int row, Object[] newRow) throws FitsException;
15     public abstract void setColumn   (int col, Object newCol) throws FitsException;
16     public abstract void setElement  (int row, int col, Object element) throws FitsException;
17
18     public abstract int addRow   (Object[] newRow) throws FitsException;
19     public abstract int addColumn(Object newCol) throws FitsException;
20
21     public abstract void deleteRows(int row, int len) throws FitsException;
22     public abstract void deleteColumns(int row, int len) throws FitsException;
23
24     public abstract void updateAfterDelete(int oldNcol, Header hdr) throws FitsException;
25
26     public abstract int getNCols();
27     public abstract int getNRows();
28
29 }