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

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

Best Java code snippets using org.granite.messaging.amf.io.AMF3Deserializer.readUnsignedByte (Showing top 4 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 int readAMF3Integer() throws IOException {
  int result = 0;
  int n = 0;
  int b = readUnsignedByte();
  while ((b & 0x80) != 0 && n < 3) {
    result <<= 7;
    result |= (b & 0x7f);
    b = readUnsignedByte();
    n++;
  }
  if (n < 3) {
    result <<= 7;
    result |= b;
  } else {
    result <<= 8;
    result |= b;
    if ((result & 0x10000000) != 0)
      result |= 0xe0000000;
  }
  if (debugMore) logMore.debug("readAMF3Integer() -> %d", result);
  return result;
}
origin: org.graniteds/granite-client-javafx

protected void readStandard(ActionScriptClassDescriptor desc, Object result) throws IOException {
  // defined values...
  final int count = desc.getPropertiesCount();
  for (int i = 0; i < count; i++) {
    Property property = desc.getProperty(i);
    Object value = readObject(readUnsignedByte());
    
    if (value != null && value.getClass() == property.getType())
      property.setValue(result, value, false);
    else
      property.setValue(result, value, true);
  }
  // dynamic values...
  if (desc.isDynamic()) {
    while (true) {
      String name = readAMF3String();
      if (name.length() == 0)
        break;
      Object value = readObject(readUnsignedByte());
      desc.setPropertyValue(name, result, value);
    }
  }
}
 
origin: org.graniteds/granite-server

protected void readStandard(ActionScriptClassDescriptor desc, Object result) throws IOException {
  // defined values...
  final int count = desc.getPropertiesCount();
  for (int i = 0; i < count; i++) {
    Property property = desc.getProperty(i);
    Object value = readObject(readUnsignedByte());
    
    if (value != null && value.getClass() == property.getType())
      property.setValue(result, value, false);
    else
      property.setValue(result, value, true);
  }
  // dynamic values...
  if (desc.isDynamic()) {
    while (true) {
      String name = readAMF3String();
      if (name.length() == 0)
        break;
      Object value = readObject(readUnsignedByte());
      desc.setPropertyValue(name, result, value);
    }
  }
}
 
origin: org.graniteds/granite-client-java

protected void readStandard(ActionScriptClassDescriptor desc, Object result) throws IOException {
  // defined values...
  final int count = desc.getPropertiesCount();
  for (int i = 0; i < count; i++) {
    Property property = desc.getProperty(i);
    Object value = readObject(readUnsignedByte());
    
    if (value != null && value.getClass() == property.getType())
      property.setValue(result, value, false);
    else
      property.setValue(result, value, true);
  }
  // dynamic values...
  if (desc.isDynamic()) {
    while (true) {
      String name = readAMF3String();
      if (name.length() == 0)
        break;
      Object value = readObject(readUnsignedByte());
      desc.setPropertyValue(name, result, value);
    }
  }
}
 
org.granite.messaging.amf.ioAMF3DeserializerreadUnsignedByte

Popular methods of AMF3Deserializer

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • BoxLayout (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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