Class EWKBUtils.EWKBSource

java.lang.Object
org.h2.util.geometry.EWKBUtils.EWKBSource
Enclosing class:
EWKBUtils

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

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

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

    Modifier and Type
    Method
    Description
    (package private) byte
    Reads one byte.
    (package private) double
    Reads a 64-bit floating point using current byte order.
    (package private) int
    Reads a 32-bit integer using current byte order.
     

    Methods inherited from class java.lang.Object

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

    • ewkb

      private final byte[] ewkb
    • offset

      private int offset
    • bigEndian

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

    • EWKBSource

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

    • 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 String toString()
      Overrides:
      toString in class Object