| Revision 3,
994 bytes
checked in by jdalbey, 10 years ago
(diff) |
|
Initial Import of project files - cadclientgui
|
| Line | |
|---|
| 1 | package tmcsim.client.cadclientgui; |
|---|
| 2 | |
|---|
| 3 | import java.io.File; |
|---|
| 4 | import java.io.IOException; |
|---|
| 5 | import java.rmi.RemoteException; |
|---|
| 6 | |
|---|
| 7 | import javax.xml.parsers.ParserConfigurationException; |
|---|
| 8 | import javax.xml.parsers.SAXParserFactory; |
|---|
| 9 | |
|---|
| 10 | import org.xml.sax.SAXException; |
|---|
| 11 | |
|---|
| 12 | import tmcsim.client.cadclientgui.data.CardfileData; |
|---|
| 13 | |
|---|
| 14 | public class CardfileReader { |
|---|
| 15 | |
|---|
| 16 | public CardfileReader(String filePath, CardfileData cfd) |
|---|
| 17 | throws RemoteException { |
|---|
| 18 | CardfileHandler ch = new CardfileHandler(cfd); |
|---|
| 19 | try { |
|---|
| 20 | SAXParserFactory.newInstance().newSAXParser() |
|---|
| 21 | .parse(new File(filePath), ch); |
|---|
| 22 | } catch (SAXException e) { |
|---|
| 23 | // TODO Auto-generated catch block |
|---|
| 24 | e.printStackTrace(); |
|---|
| 25 | } catch (IOException e) { |
|---|
| 26 | // TODO Auto-generated catch block |
|---|
| 27 | e.printStackTrace(); |
|---|
| 28 | } catch (ParserConfigurationException e) { |
|---|
| 29 | // TODO Auto-generated catch block |
|---|
| 30 | e.printStackTrace(); |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | } |
|---|
| 34 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.