changed
config process
This commit is contained in:
parent
286fd47b6c
commit
e03b2ebab2
|
@ -77,18 +77,16 @@ public class WMICrawlerWindows extends WMICrawlerOS {
|
||||||
|
|
||||||
protected OFResultSet getResultSet(EnumVariant enumVariant, Item citem) {
|
protected OFResultSet getResultSet(EnumVariant enumVariant, Item citem) {
|
||||||
|
|
||||||
OFResultSet ofResultSet = new OFResultSetCol(citem);
|
OFResultSet ofResultSet = OFResultSet.newInstance(citem);
|
||||||
|
|
||||||
Variant vItem = null;
|
Variant vItem = null;
|
||||||
Dispatch item = null;
|
Dispatch item = null;
|
||||||
|
|
||||||
Variant vValue = null;
|
Variant vValue = null;
|
||||||
|
|
||||||
String value = null;
|
String value = null;
|
||||||
|
|
||||||
List<String> row = null;
|
List<String> row = null;
|
||||||
|
Map<String,Integer> metaMap = ofResultSet.getMeta();
|
||||||
List<String> columns = (List<String>)citem.getQueryInfo().get("arrayColumns");
|
|
||||||
|
|
||||||
while (enumVariant.hasMoreElements()) {
|
while (enumVariant.hasMoreElements()) {
|
||||||
|
|
||||||
|
@ -97,24 +95,13 @@ public class WMICrawlerWindows extends WMICrawlerOS {
|
||||||
vItem = enumVariant.nextElement();
|
vItem = enumVariant.nextElement();
|
||||||
item = vItem.toDispatch();
|
item = vItem.toDispatch();
|
||||||
|
|
||||||
for( int indexI = 0; indexI < citem.getKeys().size(); ++indexI) {
|
for( String key : metaMap.keySet()) {
|
||||||
vValue = Dispatch.call(item, citem.getKeys().get(indexI));
|
vValue = Dispatch.call(item, key);
|
||||||
value = vValue.toString();
|
value = vValue.toString();
|
||||||
vValue.safeRelease();
|
vValue.safeRelease();
|
||||||
row.add(value);
|
row.add(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (columns != null) {
|
|
||||||
for( int indexI = 0 ; indexI < columns.size(); ++indexI) {
|
|
||||||
vValue = Dispatch.call(item, columns.get(indexI));
|
|
||||||
value = vValue.toString();
|
|
||||||
vValue.safeRelease();
|
|
||||||
row.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vItem.safeRelease();
|
vItem.safeRelease();
|
||||||
item.safeRelease();
|
item.safeRelease();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user