Codota Logo
AMF3Deserializer.readDouble
Code IndexAdd Codota to your IDE (free)

How to use
readDouble
method
in
org.granite.messaging.amf.io.AMF3Deserializer

Best Java code snippets using org.granite.messaging.amf.io.AMF3Deserializer.readDouble (Showing top 6 results out of 315)

  • Common ways to obtain AMF3Deserializer
private void myMethod () {
AMF3Deserializer a =
  • Codota IconInputStream in;new AMF3Deserializer(in)
  • Smart code suggestions by Codota
}
origin: org.graniteds/granite-client

protected Double readAMF3Double() throws IOException {
  double d = readDouble();
  Double result = (Double.isNaN(d) ? null : Double.valueOf(d));
  if (debugMore) logMore.debug("readAMF3Double() -> %f", result);
  return result;
}
origin: org.graniteds/granite-client-javafx

protected double[] readAMF3VectorNumber() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  
  if ((type & 0x01) == 0) // stored vector.
    return (double[])storedObjects.get(lengthOrIndex);
  readByte(); // fixed flag: unused...
  double[] vector = new double[lengthOrIndex];
  storedObjects.add(vector);
  for (int i = 0; i < lengthOrIndex; i++)
    vector[i] = readDouble();
  return vector;
}
origin: org.graniteds/granite-client-java

protected double[] readAMF3VectorNumber() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  
  if ((type & 0x01) == 0) // stored vector.
    return (double[])storedObjects.get(lengthOrIndex);
  readByte(); // fixed flag: unused...
  double[] vector = new double[lengthOrIndex];
  storedObjects.add(vector);
  for (int i = 0; i < lengthOrIndex; i++)
    vector[i] = readDouble();
  return vector;
}
origin: org.graniteds/granite-server

protected double[] readAMF3VectorNumber() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  
  if ((type & 0x01) == 0) // stored vector.
    return (double[])storedObjects.get(lengthOrIndex);
  readByte(); // fixed flag: unused...
  double[] vector = new double[lengthOrIndex];
  storedObjects.add(vector);
  for (int i = 0; i < lengthOrIndex; i++)
    vector[i] = readDouble();
  return vector;
}
origin: org.graniteds/granite-client

protected Date readAMF3Date() throws IOException {
  Date result = null;
  int type = readAMF3Integer();
  if ((type & 0x01) == 0) // stored Date
    result = (Date)getFromStoredObjects(type >> 1);
  else {
    result = new Date((long)readDouble());
    addToStoredObjects(result);
  }
  if (debugMore) logMore.debug("readAMF3Date() -> %s", result);
  return result;
}
origin: org.graniteds/granite-client

protected Object readAMF3VectorNumber() throws IOException {
  Object result = null;
  int type = readAMF3Integer();
  if ((type & 0x01) == 0) // stored vector.
    result = getFromStoredObjects(type >> 1);
  else {
    final int length = type >> 1;
    List<Double> vector = new ArrayList<Double>(length);
    
    addToStoredObjects(result);
    
    readAMF3Integer(); // always 0x00?
    
    for (int i = 0; i < length; i++)
      vector.add(readDouble());
    
    result = vector;
  }
  
  if (debugMore) logMore.debug("readAMF3VectorDouble() -> %s", result);
  return result;
}
org.granite.messaging.amf.ioAMF3DeserializerreadDouble

Popular methods of AMF3Deserializer

  • <init>
  • readObject
  • close
  • readAMF3Array
  • readAMF3ByteArray
  • readAMF3Date
  • readAMF3Double
  • readAMF3Integer
  • readAMF3Object
  • readAMF3String
  • readAMF3VectorInt
  • readAMF3VectorNumber
  • readAMF3VectorInt,
  • readAMF3VectorNumber,
  • readAMF3VectorObject,
  • readAMF3Xml,
  • readAMF3XmlString,
  • readByte,
  • readFully,
  • readInt,
  • readUnsignedByte

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reference (javax.naming)
  • JComboBox (javax.swing)
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