de.bytefish.pgbulkinsert.pgsql.handlers.utils.GeometricUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pgbulkinsert Show documentation
Show all versions of pgbulkinsert Show documentation
PgBulkInsert is a Java library for Bulk Inserts with PostgreSQL.
// Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package de.bytefish.pgbulkinsert.pgsql.handlers.utils;
import de.bytefish.pgbulkinsert.pgsql.model.geometric.Point;
import java.io.DataOutputStream;
public class GeometricUtils {
public static void writePoint(DataOutputStream buffer, final Point value) throws Exception {
buffer.writeDouble(value.getX());
buffer.writeDouble(value.getY());
}
}