code: public static ValueGetter valueGetterForEndian(ByteGetter bytes) {
          if (bytes.get(0) == 0) {
              return new ValueGetter.XDR(bytes);
          } else if (bytes.get(0) == 1) {
              return new ValueGetter.NDR(bytes);
          } else {
              throw new IllegalArgumentException("Unknown Endian type:" + bytes.get(0));
          }
      }
docs: Return the {@link org.postgis.binary.ValueGetter} for the endian from the given
  {@link org.postgis.binary.ByteGetter}.
  
  @param bytes {@link org.postgis.binary.ByteGetter} to read.
  
  @return The {@link org.postgis.binary.ValueGetter} for the endian