01: package org.lateralnz.c3d.util;
02:
03: import java.io.InputStream;
04: import java.io.Reader;
05:
06: import org.lateralnz.common.util.IOUtils;
07:
08: /**
09: *
10: * @author jbriggs
11: */
12: public class PositionData {
13: public boolean closed = false; // have we closed the rs for the current thread?
14: public int rowpos = -1; // current row position
15: public Column[] currentcols = null; // the current column data
16: public boolean lastColumnWasNull = false; // was the last column looked at null?
17: public InputStream lastInputStream = null; // the last input stream opened
18: public Reader lastReader = null; // the last reader opened (both used for auto-closing streams)
19:
20: public void reset() {
21: rowpos = -1;
22: currentcols = null;
23: lastColumnWasNull = false;
24: IOUtils.close(lastInputStream);
25: lastInputStream = null;
26: IOUtils.close(lastReader);
27: lastReader = null;
28: }
29: }
|