congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ValueGetter$NDR.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

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

Popular methods of ValueGetter$NDR

    Popular in Java

    • Making http post requests using okhttp
    • getExternalFilesDir (Context)
    • getContentResolver (Context)
    • onRequestPermissionsResult (Fragment)
    • Container (java.awt)
      A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
    • ByteBuffer (java.nio)
      A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
    • SimpleDateFormat (java.text)
      Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
    • GregorianCalendar (java.util)
      GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
    • ReentrantLock (java.util.concurrent.locks)
      A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • 21 Best Atom Packages for 2021
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now