Codota Logo
com.jme3.export.binary
Code IndexAdd Codota to your IDE (free)

How to use com.jme3.export.binary

Best Java code snippets using com.jme3.export.binary (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

protected StringIDMap readStringSavableMap(byte[] content) throws IOException {
  int elements = readInt(content);
  if (elements == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  String[] keys = readStringArray(content);
  ID[] values = readSavableArray(content);
  StringIDMap rVal = new StringIDMap();
  rVal.keys = keys;
  rVal.values = values;
  return rVal;
}
origin: jMonkeyEngine/jmonkeyengine

protected int readInt(byte[] content) throws IOException {
  byte[] bytes = inflateFrom(content, index);
  index += 1 + bytes.length;
  bytes = ByteUtils.rightAlignBytes(bytes, 4);
  int value = ByteUtils.convertIntFromBytes(bytes);
  if (value == BinaryOutputCapsule.NULL_OBJECT
      || value == BinaryOutputCapsule.DEFAULT_OBJECT)
    index -= 4;
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected long readLong(byte[] content) throws IOException {
  byte[] bytes = inflateFrom(content, index);
  index += 1 + bytes.length;
  bytes = ByteUtils.rightAlignBytes(bytes, 8);
  long value = ByteUtils.convertLongFromBytes(bytes);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected IntIDMap readIntSavableMap(byte[] content) throws IOException {
  int elements = readInt(content);
  if (elements == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  int[] keys = readIntArray(content);
  ID[] values = readSavableArray(content);
  IntIDMap rVal = new IntIDMap();
  rVal.keys = keys;
  rVal.values = values;
  return rVal;
}
origin: jMonkeyEngine/jmonkeyengine

public void write(boolean[][] value, String name, boolean[][] defVal)
    throws IOException {
  if (value == defVal)
    return;
  writeAlias(name, BinaryClassField.BOOLEAN_2D);
  write(value);
}
origin: jMonkeyEngine/jmonkeyengine

protected void write(Savable object) throws IOException {
  if (object == null) {
    write(NULL_OBJECT);
    return;
  }
  int id = exporter.processBinarySavable(object);
  write(id);
}
origin: jMonkeyEngine/jmonkeyengine

protected ID readSavable(byte[] content) throws IOException {
  int id = readInt(content);
  if (id == BinaryOutputCapsule.NULL_OBJECT) {
    return null;
  }
  return new ID(id);
}
origin: jMonkeyEngine/jmonkeyengine

  protected BinaryIdContentPair generateIdContentPair(BinaryClassObject bco) {
    BinaryIdContentPair pair = new BinaryIdContentPair(idCount++,
        new BinaryOutputCapsule(this, bco));
    return pair;
  }
}
origin: jMonkeyEngine/jmonkeyengine

protected byte[] readByteArray(byte[] content) throws IOException {
  int length = readInt(content);
  if (length == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  byte[] value = new byte[length];
  for (int x = 0; x < length; x++)
    value[x] = readByte(content);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected long[] readLongArray(byte[] content) throws IOException {
  int length = readInt(content);
  if (length == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  long[] value = new long[length];
  for (int x = 0; x < length; x++)
    value[x] = readLong(content);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected long[][] readLongArray2D(byte[] content) throws IOException {
  int length = readInt(content);
  if (length == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  long[][] value = new long[length][];
  for (int x = 0; x < length; x++)
    value[x] = readLongArray(content);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected boolean[] readBooleanArray(byte[] content) throws IOException {
  int length = readInt(content);
  if (length == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  boolean[] value = new boolean[length];
  for (int x = 0; x < length; x++)
    value[x] = readBoolean(content);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected String[] readStringArray(byte[] content) throws IOException {
  int length = readInt(content);
  if (length == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  String[] value = new String[length];
  for (int x = 0; x < length; x++)
    value[x] = readString(content);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected ID[] readSavableArray(byte[] content) throws IOException {
  int elements = readInt(content);
  if (elements == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  ID[] rVal = new ID[elements];
  for (int x = 0; x < elements; x++) {
    rVal[x] = readSavable(content);
  }
  return rVal;
}
origin: jMonkeyEngine/jmonkeyengine

protected void write(long[][] value) throws IOException {
  if (value == null) {
    write(NULL_OBJECT);
    return;
  }
  write(value.length);
  for (int x = 0; x < value.length; x++)
    write(value[x]);
}
origin: jMonkeyEngine/jmonkeyengine

protected int[] readIntArray(byte[] content) throws IOException {
  int length = readInt(content);
  if (length == BinaryOutputCapsule.NULL_OBJECT)
    return null;
  int[] value = new int[length];
  for (int x = 0; x < length; x++)
    value[x] = readInt(content);
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

protected float readFloat(byte[] content) throws IOException {
  float value = ByteUtils.convertFloatFromBytes(content, index);
  index += 4;
  return value;
}
origin: jMonkeyEngine/jmonkeyengine

public void write(short[][] value, String name, short[][] defVal)
    throws IOException {
  if (value == defVal)
    return;
  writeAlias(name, BinaryClassField.SHORT_2D);
  write(value);
}
origin: jMonkeyEngine/jmonkeyengine

protected void write(short[] value) throws IOException {
  if (value == null) {
    write(NULL_OBJECT);
    return;
  }
  write(value.length);
  for (int x = 0; x < value.length; x++)
    write(value[x]);
}
origin: jMonkeyEngine/jmonkeyengine

protected void write(float[] value) throws IOException {
  if (value == null) {
    write(NULL_OBJECT);
    return;
  }
  write(value.length);
  for (int x = 0; x < value.length; x++)
    write(value[x]);
}
com.jme3.export.binary

Most used classes

  • BinaryExporter
    Exports to the jME Binary Format. Format descriptor: (each numbered item denotes a series of bytes t
  • BinaryImporter
  • BinaryClassField
  • BinaryClassObject
  • BinaryIdContentPair
  • BinaryInputCapsule$IntIDMap,
  • BinaryInputCapsule$StringIDMap,
  • BinaryInputCapsule,
  • BinaryOutputCapsule,
  • ByteUtils
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