congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AMF3Deserializer.readFully
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.graniteds/granite-client-java

@Override
public void readFully(byte[] b) throws IOException {
  readFully(b, 0, b.length);
}
origin: org.graniteds/granite-server

@Override
public void readFully(byte[] b) throws IOException {
  readFully(b, 0, b.length);
}
origin: org.graniteds/granite-client-javafx

@Override
public void readFully(byte[] b) throws IOException {
  readFully(b, 0, b.length);
}
origin: org.graniteds/granite-server

protected byte[] readAMF3ByteArray() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  
  if ((type & 0x01) == 0) // stored object.
    return (byte[])storedObjects.get(lengthOrIndex);
  
  byte[] result = new byte[lengthOrIndex];
  readFully(result, 0, lengthOrIndex);
  storedObjects.add(result);
  return result;
}
origin: org.graniteds/granite-server

protected String readAMF3XmlString() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  if ((type & 0x01) == 0) // stored object
    return (String)storedObjects.get(lengthOrIndex);
  
  byte[] bytes = new byte[lengthOrIndex];
  readFully(bytes, 0, lengthOrIndex);
  String result = new String(bytes, UTF8);
  storedObjects.add(result);
  return result;
}
origin: org.graniteds/granite-client-java

protected byte[] readAMF3ByteArray() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  
  if ((type & 0x01) == 0) // stored object.
    return (byte[])storedObjects.get(lengthOrIndex);
  
  byte[] result = new byte[lengthOrIndex];
  readFully(result, 0, lengthOrIndex);
  storedObjects.add(result);
  return result;
}
origin: org.graniteds/granite-client-javafx

protected byte[] readAMF3ByteArray() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  
  if ((type & 0x01) == 0) // stored object.
    return (byte[])storedObjects.get(lengthOrIndex);
  
  byte[] result = new byte[lengthOrIndex];
  readFully(result, 0, lengthOrIndex);
  storedObjects.add(result);
  return result;
}
origin: org.graniteds/granite-client-javafx

protected String readAMF3XmlString() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  if ((type & 0x01) == 0) // stored object
    return (String)storedObjects.get(lengthOrIndex);
  
  byte[] bytes = new byte[lengthOrIndex];
  readFully(bytes, 0, lengthOrIndex);
  String result = new String(bytes, UTF8);
  storedObjects.add(result);
  return result;
}
origin: org.graniteds/granite-client-java

protected String readAMF3XmlString() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  if ((type & 0x01) == 0) // stored object
    return (String)storedObjects.get(lengthOrIndex);
  
  byte[] bytes = new byte[lengthOrIndex];
  readFully(bytes, 0, lengthOrIndex);
  String result = new String(bytes, UTF8);
  storedObjects.add(result);
  return result;
}
origin: org.graniteds/granite-server

protected String readAMF3String() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  if ((type & 0x01) == 0) // stored string
    return storedStrings.get(lengthOrIndex);
  
  if (lengthOrIndex == 0)
    return "";
  
  String result;
  if (lengthOrIndex <= buffer.length) {
    ensureAvailable(lengthOrIndex);
    result = new String(buffer, position, lengthOrIndex, UTF8);
    position += lengthOrIndex;
  }
  else {
    byte[] bytes = new byte[lengthOrIndex];
    readFully(bytes, 0, lengthOrIndex);
    result = new String(bytes, UTF8);
  }
  storedStrings.add(result);
  return result;
}
origin: org.graniteds/granite-client-java

protected String readAMF3String() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  if ((type & 0x01) == 0) // stored string
    return storedStrings.get(lengthOrIndex);
  
  if (lengthOrIndex == 0)
    return "";
  
  String result;
  if (lengthOrIndex <= buffer.length) {
    ensureAvailable(lengthOrIndex);
    result = new String(buffer, position, lengthOrIndex, UTF8);
    position += lengthOrIndex;
  }
  else {
    byte[] bytes = new byte[lengthOrIndex];
    readFully(bytes, 0, lengthOrIndex);
    result = new String(bytes, UTF8);
  }
  storedStrings.add(result);
  return result;
}
origin: org.graniteds/granite-client-javafx

protected String readAMF3String() throws IOException {
  final int type = readAMF3UnsignedInteger();
  final int lengthOrIndex = type >>> 1;
  if ((type & 0x01) == 0) // stored string
    return storedStrings.get(lengthOrIndex);
  
  if (lengthOrIndex == 0)
    return "";
  
  String result;
  if (lengthOrIndex <= buffer.length) {
    ensureAvailable(lengthOrIndex);
    result = new String(buffer, position, lengthOrIndex, UTF8);
    position += lengthOrIndex;
  }
  else {
    byte[] bytes = new byte[lengthOrIndex];
    readFully(bytes, 0, lengthOrIndex);
    result = new String(bytes, UTF8);
  }
  storedStrings.add(result);
  return result;
}
origin: org.graniteds/granite-client

char[] utfChars = new char[length];
readFully(utfBytes);
org.granite.messaging.amf.ioAMF3DeserializerreadFully

Popular methods of AMF3Deserializer

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

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Option (scala)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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