Codota Logo
ValueGetter$NDR
Code IndexAdd Codota to your IDE (free)

How to use
ValueGetter$NDR
in
org.postgis.binary

Best Java code snippets using org.postgis.binary.ValueGetter$NDR (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: postgis/postgis-java

/**
 * Get the appropriate ValueGetter for my endianness
 * 
 * @param bytes The appropriate Byte Getter
 * 
 * @return the ValueGetter
 */
public static ValueGetter valueGetterForEndian(ByteGetter bytes) {
  if (bytes.get(0) == ValueGetter.XDR.NUMBER) { // XDR
    return new ValueGetter.XDR(bytes);
  } else if (bytes.get(0) == ValueGetter.NDR.NUMBER) {
    return new ValueGetter.NDR(bytes);
  } else {
    throw new IllegalArgumentException("Unknown Endian type:" + bytes.get(0));
  }
}
origin: postgis/postgis-java

/**
 * Get the appropriate ValueGetter for my endianness
 * 
 * @param bytes The appropriate Byte Getter
 * 
 * @return the ValueGetter
 */
public static ValueGetter valueGetterForEndian(ByteGetter bytes) {
  if (bytes.get(0) == ValueGetter.XDR.NUMBER) { // XDR
    return new ValueGetter.XDR(bytes);
  } else if (bytes.get(0) == ValueGetter.NDR.NUMBER) {
    return new ValueGetter.NDR(bytes);
  } else {
    throw new IllegalArgumentException("Unknown Endian type:" + bytes.get(0));
  }
}
origin: net.postgis/postgis-jdbc

/**
 * Get the appropriate ValueGetter for my endianness
 * 
 * @param bytes The appropriate Byte Getter
 * 
 * @return the ValueGetter
 */
public static ValueGetter valueGetterForEndian(ByteGetter bytes) {
  if (bytes.get(0) == ValueGetter.XDR.NUMBER) { // XDR
    return new ValueGetter.XDR(bytes);
  } else if (bytes.get(0) == ValueGetter.NDR.NUMBER) {
    return new ValueGetter.NDR(bytes);
  } else {
    throw new IllegalArgumentException("Unknown Endian type:" + bytes.get(0));
  }
}
origin: postgis/postgis-java

/**
 * Get the appropriate ValueGetter for my endianness
 * 
 * @param bytes
 *            The appropriate Byte Getter
 * 
 * @return the ValueGetter
 */
public static ValueGetter valueGetterForEndian(ByteGetter bytes) {
  if (bytes.get(0) == ValueGetter.XDR.NUMBER) { // XDR
    return new ValueGetter.XDR(bytes);
  } else if (bytes.get(0) == ValueGetter.NDR.NUMBER) {
    return new ValueGetter.NDR(bytes);
  } else {
    throw new IllegalArgumentException("Unknown Endian type:" + bytes.get(0));
  }
}
origin: orbisgis/h2gis

/**
 * 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
 */
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));
  }
}
org.postgis.binaryValueGetter$NDR

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now