Class WKBReader


  • public class WKBReader
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  WKBReader.Callback  
    • Constructor Summary

      Constructors 
      Constructor Description
      WKBReader​(org.oscim.core.GeometryBuffer geom, boolean flipY)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] hexStringToByteArray​(java.lang.String s)
      Converting a string of hex character to bytes
      void parse​(byte[] value)
      Parse a binary encoded geometry.
      void parse​(java.lang.String value)
      Parse a hex encoded geometry.
      void setCallback​(WKBReader.Callback cb)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WKBReader

        public WKBReader​(org.oscim.core.GeometryBuffer geom,
                         boolean flipY)
    • Method Detail

      • parse

        public void parse​(byte[] value)
        Parse a binary encoded geometry.
      • parse

        public void parse​(java.lang.String value)
        Parse a hex encoded geometry.
      • hexStringToByteArray

        public static byte[] hexStringToByteArray​(java.lang.String s)
        Converting a string of hex character to bytes

        from http://stackoverflow.com/questions/140131/convert-a-string- representation-of-a-hex-dump-to-a-byte-array-using-java