- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyClass.java
More file actions
Latest commit
31 lines (27 loc) · 901 Bytes
/
Copy pathMyClass.java
File metadata and controls
31 lines (27 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
packagecom.example;
importjava.io.File;
importjava.io.FileInputStream;
importjava.io.IOException;
importjava.util.List;
importjavax.xml.parsers.ParserConfigurationException;
importorg.xml.sax.SAXException;
/**
* Created by adaJQD on 2017/1/12.
*/
publicclassMyClass {
publicstaticvoidmain(String[] args) {
DimensParserparser = newDimensParser();
try {
List<DimenValues> list = parser.parse(
newFileInputStream(Config.path + File.separator + "dimens.xml"));
DimensCreatorcreator = newDimensCreator(Config.path, list);
creator.createAll();
} catch (ParserConfigurationExceptione) {
e.printStackTrace();
} catch (SAXExceptione) {
e.printStackTrace();
} catch (IOExceptione) {
e.printStackTrace();
}
}
}