All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mreutegg.laszip4j.laszip.LASreadItemRaw_GPSTIME11 Maven / Gradle / Ivy

There is a newer version: 0.19
Show newest version
/*
 * Copyright 2007-2013, martin isenburg, rapidlasso - fast tools to catch reality
 *
 * This is free software; you can redistribute and/or modify it under the
 * terms of the GNU Lesser General Licence as published by the Free Software
 * Foundation. See the LICENSE.txt file for more information.
 *
 * This software is distributed WITHOUT ANY WARRANTY and without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
package com.github.mreutegg.laszip4j.laszip;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class LASreadItemRaw_GPSTIME11 extends LASreadItemRaw {

    private ByteBuffer bb = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);

    @Override
    public void read(byte[] item) {
        bb.clear();
        instream.getBytes(bb.array(), 8);
        // write native big endian into item
        ByteBuffer itemBB = ByteBuffer.wrap(item);
        itemBB.putLong(bb.getLong());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy