de.bytefish.pgbulkinsert.pgsql.handlers.DoubleValueHandler Maven / Gradle / Ivy
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package de.bytefish.pgbulkinsert.pgsql.handlers;
import java.io.DataOutputStream;
public class DoubleValueHandler extends BaseValueHandler {
@Override
protected void internalHandle(DataOutputStream buffer, final T value) throws Exception {
buffer.writeInt(8);
buffer.writeDouble(value.doubleValue());
}
@Override
public int getLength(T value) {
return 8;
}
}