Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package datafileinfo;
- import fiftyone.mobile.detection.Provider;
- import fiftyone.mobile.detection.factories.StreamFactory;
- import java.io.IOException;
- /**
- *
- * @author mike
- */
- public class DataFileInfo {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) throws IOException {
- Provider p;
- p = new Provider(StreamFactory.create("C:\\Path\\To\\DataFile.dat"));
- System.out.println("Type: " + p.dataSet.getName());
- System.out.println("Version: " + p.dataSet.version);
- System.out.println("Published: " + p.dataSet.published);
- System.out.println("Next Update: " + p.dataSet.nextUpdate);
- System.out.println("Properties: " + p.dataSet.getProperties().size());
- System.out.println("Unique device combinations: " + p.dataSet.deviceCombinations);
- System.exit(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement