public static final RunnableSource createReaderForFile(File file)
throws FileNotFoundException {
boolean pbf = false;
CompressionMethod compression = CompressionMethod.None;
if (file.getName().endsWith(".pbf")) {
pbf = true;
} else if (file.getName().endsWith(".gz")) {
compression = CompressionMethod.GZip;