code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
package com.google.code.geobeagle.cachedetails;
import java.io.IOException;
public interface NullWriterOpener {
public void open() throws IOException;
}
| Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
package com.google.code.geobeagle.cachedetails;
import java.io.IOException;
public interface FilerWriterOpener {
public void open(String path) throws IOException;
}
| Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/*
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** d... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dbcreator.common;
/**
* @author yrtimid
*
*/
public interface INotificationManager {
public abstract void notify(int id, Notification2 notification);
} | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dbcreator.common;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.logging.Logger;
import il.yrtimid.osm.osmpoi.ImportSettings;
import il.yrtimid.osm.osmpoi.ItemPipe;
import il.yrtimid.osm.os... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dbcreator.common;
/**
* @author yrtimid
*
*/
public class Notification2 {
public String tickerText;
public String title;
public String text;
public long when;
/**
* Bit to be bitwise-ored into the {@link #flags} field that should be
* set if you want th... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.pbf;
/**
* Maintains state about execution progress. It calculates when the next update
* is due, and provides statistics on execution.
*
* @author Brett Henderson
*/
public class ProgressTracker {
private int interval;
private boolean initialized;
private long firstUpda... | Java |
package il.yrtimid.osm.osmpoi.pbf;
import il.yrtimid.osm.osmpoi.ItemPipe;
import il.yrtimid.osm.osmpoi.domain.*;
import il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6.Sink;
public class EntityHandler implements Sink {
ItemPipe<Entity> itemPipe;
int maximumEntries = Integer.MAX_VALUE;
public EntityHandler(ItemPipe... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.pbf;
import org.openstreetmap.osmosis.core.task.v0_6.SinkSource;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6.Sink;
/**
* @author yrtimid
*
*/
public class PeriodicProgressNotifier implements SinkSource {
private Sink si... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.pbf;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.Tag;
import il.yrtimid.osm.osmpoi.tagmatchers.TagMatcher;
/**
* @author yrtimid
*
*/
public class EntityMatcher {
TagMatcher tagMatcher;
public EntityMatcher(TagMatcher tagMatcher) {
... | Java |
package il.yrtimid.osm.osmpoi.pbf;
import il.yrtimid.osm.osmpoi.ItemPipe;
import il.yrtimid.osm.osmpoi.domain.*;
import il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6.NullSink;
import java.io.InputStream;
import crosby.binary.file.BlockInputStream;
import crosby.binary.osmosis.OsmosisBinaryParser;
public class OsmImp... | Java |
package il.yrtimid.osm.osmpoi.pbf;
public interface ProgressNotifier {
public void onProgressChange(Progress newProgress);
public class Progress{
private Long count;
private String message;
private Long maximum;
public Progress(Long count){
this.count = count;
}
public Progress(Long count, Long ... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package crosby.binary.osmosis;
import il.yrtimid.osm.osmpoi.domain.*;
import il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6.Sink;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.openstreetmap.osmosis... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;
@SuppressWarnings("serial")
public class SortedProperties extends Properties {
/**
* Overrides, called by the store method.
*/
@SuppressWarnings({ ... | Java |
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.Entity;
public class AndMatcher extends BinaryMatcher {
public AndMatcher(TagMatcher left, TagMatcher right) {
this.left = left;
this.right = right;
}
/* (non-Javadoc)
* @see il.yrtimid.osm.osmpoi.tagmatchers.TagMatcher#isMatch(j... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.tagmatchers;
import java.util.ArrayList;
import java.util.List;
/**
* @author yrtimid
*
*/
public abstract class BinaryMatcher extends TagMatcher {
protected TagMatcher left;
protected TagMatcher right;
public TagMatcher getLeft() {
return left;
}
public TagMatch... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.*;
import il.yrtimid.osm.osmpoi.domain.EntityType;
/**
* @author yrtimid
*
*/
public class AssociatedMatcher extends TagMatcher {
EntityType entityType;
Long id;
public AssociatedMatcher(EntityType type, Long id) {
t... | Java |
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.Entity;
public class OrMatcher extends BinaryMatcher {
public OrMatcher(TagMatcher left, TagMatcher right) {
this.left = left;
this.right = right;
}
/* (non-Javadoc)
* @see il.yrtimid.osm.osmpoi.tagmatchers.TagMatcher#isMatch(jav... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.EntityType;
/**
* @author yrtimid
*
*/
public class IdMatcher extends TagMatcher {
EntityType entityType;
Long id;
public IdMatcher(EntityType type, Long id) {
this.entityT... | Java |
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.Entity;
public class NotMatcher extends TagMatcher {
TagMatcher matcher;
public NotMatcher(TagMatcher matcher) {
this.matcher = matcher;
}
/* (non-Javadoc)
* @see il.yrtimid.osm.osmpoi.tagmatchers.TagMatcher#isMatch(java.lang.Ch... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.EntityType;
import java.security.InvalidParameterException;
import java.util.ArrayList;
import java.util.List;
/**
* Base class for all entity filters
*
* @author yrtimiD
*/
pub... | Java |
package il.yrtimid.osm.osmpoi.tagmatchers;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.Tag;
public class KeyValueMatcher extends TagMatcher {
private String k;
private String v;
/**
* Creates new matcher which will match tags with exact name of the key and
* exact value '*... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Properties;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.EntityType;
import il.yrtimid.osm.... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi;
/**
* @author yrtimid
*
*/
public class Pair<A, B> {
private A a;
private B b;
public Pair(A a, B b){
this.a = a;
this.b = b;
}
/**
* @return the a
*/
public A getA() {
return a;
}
/**
* @return the b
*/
public B getB() {
return b;
}
}
| Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dal;
import java.sql.SQLException;
import il.yrtimid.osm.osmpoi.domain.Node;
import il.yrtimid.osm.osmpoi.domain.Way;
/**
* @author yrtimid
*
*/
public interface IDbCachedFiller extends IDbFiller{
public abstract void beginAdd();
public abstract void endAdd();
publi... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dal;
/**
* @author yrtimid
*
*/
public class Queries {
public static final String BOUNDS_TABLE = "bounds";
public static final String NODES_TABLE = "nodes";
public static final String NODES_TAGS_TABLE = "node_tags";
public static final String WAYS_TABLE = "ways";
p... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dal;
import il.yrtimid.osm.osmpoi.domain.Bound;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.Node;
import il.yrtimid.osm.osmpoi.domain.Relation;
import il.yrtimid.osm.osmpoi.domain.Way;
import java.sql.SQLException;
/**
* @author yrtimid
... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dal;
/**
* @author yrtimid
*
*/
public interface IDatabase {
void create() throws Exception;
void drop();
}
| Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
/**
* A data class representing a single OSM tag.
*
* @author Brett Henderson
*/
public class Tag implements Comparable<Tag>{
/**
* The key identifying the tag.
*/
private String key;
/... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
* Contains data common to all entity types. This is separat... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.util.Collection;
/**
* A data class representing a single OSM node.
*
* @author Brett Henderson
*/
public class Node extends Entity implements Comparable<Node>{
protected double... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.domain;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
/**
* @author yrtimid
*
*/
public class TagCollection extends ArrayList<Tag> {
private static final... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
/**
* A data class representing a single OSM way.
*
* @author Brett Henderson
*/
pub... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
/**
* A data class representing a single OSM relation.
*
* @author Brett Henderson
*... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.security.InvalidParameterException;
/**
* A data class representing a single member within a relation entity.
*
* @author Brett Henderson
*/
public class RelationMember implements C... | Java |
package il.yrtimid.osm.osmpoi.domain;
public class WayNode extends Entity {
protected WayNode(){
this(new CommonEntityData());
}
/**
* Creates a new instance.
*
* @param entityData
* The common entity data.
*/
public WayNode(CommonEntityData entityData) {
super(entityData);
}
public... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.util.Collection;
/**
* A data class representing a single OSM entity. All top level data types
* inherit from this class.
*
* @author Brett Henderson
*/
public abstract class Enti... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
import java.util.Date;
/**
* A data class representing an OSM data bound element.
*
* @author Karl Newman
*/
public class Bound extends Entity {
private static final double MIN_LATITUDE = ... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.domain;
/**
* An enum representing the different data types in the OSM data model.
*
* @author Brett Henderson
*/
public enum EntityType {
None,
/**
* Representation of the latitude/longitude boun... | Java |
package il.yrtimid.osm.osmpoi;
public interface ItemPipe<T> {
public void pushItem(T item);
}
| Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.xml.v0_6.impl;
import il.yrtimid.osm.osmpoi.domain.EntityType;
import java.util.HashMap;
import java.util.Map;
import org.openstreetmap.osmosis.core.OsmosisRuntimeException;
/**
* Parses the xml re... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.xml.v0_6.impl;
/**
* Defines some common constants shared between various xml processing classes.
*
* @author Brett Henderson
*/
public final class XmlConstants {
/**
* This class cannot be i... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core.lifecycle;
/**
* Classes that hold heavyweight resources that can't wait for garbage
* collection should implement this interface. It provides a release method that
* should be called by all cl... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core.lifecycle;
/**
* Some class implementations persist information and require notification to
* complete all output prior to being released. In this case, clients of those
* classes should call t... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core;
/**
* Constants shared across the Osmosis application.
*
* @author Brett Henderson
*/
public final class OsmosisConstants {
/**
* This class cannot be instantiated.
*/
private Osmosis... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core.task.v0_6;
import il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6.Sink;
import org.openstreetmap.osmosis.core.task.common.Task;
/**
* Defines the interface for tasks producing OSM data types.
*
... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core.task.v0_6;
/**
* Extends the basic Source interface with the Runnable capability. Runnable
* is not applied to the Source interface because tasks that act as filters
* do not require Runnable c... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core.task.v0_6;
import il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6.Sink;
/**
* Defines the interface for combining sink and source functionality. This is
* typically used by classes performing some... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core.task.common;
/**
* Defines the root of the interface inheritance hierarchy for all task types.
*
* @author Brett Henderson
*/
public interface Task {
// Interface only exists to provide a co... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package org.openstreetmap.osmosis.core;
/**
* The root of the unchecked exception hierarchy for the application. All typed
* runtime exceptions subclass this exception.
*
* @author Brett Henderson
*/
public class OsmosisRuntimeEx... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6;
import il.yrtimid.osm.osmpoi.domain.Entity;
/**
* @author yrtimid
*
*/
public class NullSink implements Sink {
/* (non-Javadoc)
* @see org.openstreetmap.osmosis.core.lifecycle.Completable#complete()
*/
@Override
public void complete() {
}
... | Java |
// This software is released into the Public Domain. See copying.txt for details.
package il.yrtimid.osm.osmpoi.osmosis.core.task.v0_6;
import il.yrtimid.osm.osmpoi.domain.Entity;
import org.openstreetmap.osmosis.core.lifecycle.Completable;
import org.openstreetmap.osmosis.core.task.common.Task;
/**
* Defines the... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.db;
import il.yrtimid.osm.osmpoi.dal.IDatabase;
import il.yrtimid.osm.osmpoi.dal.Queries;
import java.io.File;
import java.sql.*;
/**
* @author yrtimid
*
*/
public class SqliteJDBCCreator extends SqliteJDBCDatabase implements IDatabase {
protected Connection conn;
/... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.db;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Collection;
import il.yrtimid.osm.osmpoi.Pair;
import il.yrtimid.osm.osmpoi.dal.IDbFiller;
import il.yrtimid... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.db;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import il.yrtimid.osm.osmpoi.dal.IDbCachedFiller;
import il.yrtimid.osm.osmpoi.dal.Queries;
import il.yrtimid.osm.osmpoi.domain.Entity;
import il.yrtimid.osm.osmpoi.domain.Node;
import il.... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.db;
import il.yrtimid.osm.osmpoi.dal.Queries;
import il.yrtimid.osm.osmpoi.domain.GridCell;
import java.sql.*;
import java.util.ArrayList;
import java.util.Collection;
/**
* @author yrtimid
*
*/
public class SqliteJDBCGridReader extends SqliteJDBCDatabase {
/**
* @th... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* @author yrtimid
*
*/
public class SqliteJDBCDatabase {
String filePath;
/**
* @throws ClassNotFoundException
*
*/
public SqliteJDBCDatabase(String filePath) throw... | Java |
package il.yrtimid.osm.osmpoi.dbcreator;
import il.yrtimid.osm.osmpoi.ImportSettings;
import il.yrtimid.osm.osmpoi.SortedProperties;
import il.yrtimid.osm.osmpoi.db.SqliteJDBCCachedFiller;
import il.yrtimid.osm.osmpoi.db.SqliteJDBCGridReader;
import il.yrtimid.osm.osmpoi.dbcreator.common.DbCreator;
import il.yrtimid.o... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.dbcreator;
import il.yrtimid.osm.osmpoi.dbcreator.common.*;
/**
* @author yrtimid
*
*/
public class ConsoleNotificationManager implements INotificationManager {
/* (non-Javadoc)
* @see il.yrtimid.osm.osmpoi.dbcreator.INotificationManager#notify(int, il.yrtimid.osm.osmpo... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi;
/**
* @author yrtimid
* use setprop log.tag.OsmPoi VERBOSE to enable logging
*/
public class Log {
static final String TAG = "OsmPoi";
public static void i(String string) {
System.out.println(TAG+": "+string);
}
public static void w(String string) {
Syst... | Java |
/**
*
*/
package il.yrtimid.osm.osmpoi.domain;
/**
* @author yrtimid
*
*/
public class GridCell {
int id;
double minLat, minLon, maxLat, maxLon;
/**
* @param id
* @param minLat
* @param minLon
* @param maxLat
* @param maxLon
*/
public GridCell(int id, double minLat, double minLon, double maxLat... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.