Class EWKBUtils.EWKBSource

  • Enclosing class:
    EWKBUtils

    private static final class EWKBUtils.EWKBSource
    extends java.lang.Object
    Helper source object for EWKB reading.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean bigEndian
      Whether current byte order is big-endian.
      private byte[] ewkb  
      private int offset  
    • Constructor Summary

      Constructors 
      Constructor Description
      EWKBSource​(byte[] ewkb)
      Creates new instance of EWKB source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) byte readByte()
      Reads one byte.
      (package private) double readCoordinate()
      Reads a 64-bit floating point using current byte order.
      (package private) int readInt()
      Reads a 32-bit integer using current byte order.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ewkb

        private final byte[] ewkb
      • offset

        private int offset
      • bigEndian

        boolean bigEndian
        Whether current byte order is big-endian.
    • Constructor Detail

      • EWKBSource

        EWKBSource​(byte[] ewkb)
        Creates new instance of EWKB source.
        Parameters:
        ewkb - EWKB
    • Method Detail

      • readByte

        byte readByte()
        Reads one byte.
        Returns:
        next byte
      • readInt

        int readInt()
        Reads a 32-bit integer using current byte order.
        Returns:
        next 32-bit integer
      • readCoordinate

        double readCoordinate()
        Reads a 64-bit floating point using current byte order.
        Returns:
        next 64-bit floating point
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object