Package org.openstreetmap.osmosis.core

Examples of org.openstreetmap.osmosis.core.OsmosisRuntimeException


     
      writer.close();
      fileWriter = null;
     
    } catch (IOException e) {
      throw new OsmosisRuntimeException("Unable to write report to file " + file + ".");
    }
  }
View Full Code Here


      resultSet = null;
     
      return resultList;
     
    } catch (SQLException e) {
      throw new OsmosisRuntimeException("Query failed for "
          + entityFeatureBuilder.getEntityName() + " " + entityId + ".", e);
    } finally {
      if (resultSet != null) {
        try {
          resultSet.close();
View Full Code Here

    for (Tdb feature : features) {
      try {
        entityFeatureBuilder.populateEntityParameters(insertStatement, 1, feature);
        insertStatement.executeUpdate();
      } catch (SQLException e) {
        throw new OsmosisRuntimeException(
            "Insert failed for "
            + entityFeatureBuilder.getEntityName() + " " + feature.getEntityId()
            + "."
        );
      }
View Full Code Here

      prmIndex = 1;
      deleteStatement.setLong(prmIndex++, entityId);
      deleteStatement.executeUpdate();
     
    } catch (SQLException e) {
      throw new OsmosisRuntimeException(
        "Delete failed for "
          + entityFeatureBuilder.getEntityName() + " "
          + entityId + "."
      );
    }
View Full Code Here

          resultSet.getLong("changeset_id")
        )
      );
     
    } catch (SQLException e) {
      throw new OsmosisRuntimeException("Unable to build a relation from the current recordset row.", e);
    }
  }
View Full Code Here

      return input.readBoolean();
    } catch (EOFException e) {
      throw new EndOfStoreException(
          "End of stream was reached while attempting to read a boolean from the store.", e);
    } catch (IOException e) {
      throw new OsmosisRuntimeException("Unable to read a boolean from the store.", e);
    }
  }
View Full Code Here

      return input.readByte();
    } catch (EOFException e) {
      throw new EndOfStoreException(
          "End of stream was reached while attempting to read a byte from the store.", e);
    } catch (IOException e) {
      throw new OsmosisRuntimeException(
          "Unable to read a byte from the store.", e);
    }
  }
View Full Code Here

      return input.readChar();
    } catch (EOFException e) {
      throw new EndOfStoreException(
          "End of stream was reached while attempting to read a character from the store.", e);
    } catch (IOException e) {
      throw new OsmosisRuntimeException(
          "Unable to read a character from the store.", e);
    }
  }
View Full Code Here

      return input.readInt();
    } catch (EOFException e) {
      throw new EndOfStoreException(
          "End of stream was reached while attempting to read an integer from the store.", e);
    } catch (IOException e) {
      throw new OsmosisRuntimeException(
          "Unable to read an integer from the store.", e);
    }
  }
View Full Code Here

      return input.readLong();
    } catch (EOFException e) {
      throw new EndOfStoreException(
          "End of stream was reached while attempting to read a long from the store.", e);
    } catch (IOException e) {
      throw new OsmosisRuntimeException(
          "Unable to read a long from the store.", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.OsmosisRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.