java.io.ObjectInputStream.readShort()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中java.io.ObjectInputStream.readShort()方法的一些代码示例,展示了ObjectInputStream.readShort()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectInputStream.readShort()方法的具体详情如下:
包路径:java.io.ObjectInputStream
类名称:ObjectInputStream
方法名:readShort

ObjectInputStream.readShort介绍

[英]Reads a short (16 bit) from the source stream.
[中]从源流中读取短(16位)。

代码示例

代码示例来源:origin: apache/shiro

in.defaultReadObject();
short bitMask = in.readShort();

代码示例来源:origin: org.apache.shiro/shiro-core

in.defaultReadObject();
short bitMask = in.readShort();

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new short[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readShort();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    a = new short[size];
    for (int i = 0; i < size; i++)
      a[i] = s.readShort();
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    a = new short[size];
    for (int i = 0; i < size; i++)
      a[i] = s.readShort();
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    array = new short[s.readInt()];
    for (int i = 0; i < size; i++)
      array[i] = s.readShort();
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new Object[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readObject();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new Object[size];
    value = new short[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readObject();
      value[i] = s.readShort();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new int[size];
    value = new short[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readInt();
      value[i] = s.readShort();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new int[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readInt();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new long[size];
    value = new short[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readLong();
      value[i] = s.readShort();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    heap = new short[s.readInt()];
    for (int i = 0; i < size; i++)
      heap[i] = s.readShort();
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new Object[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readObject();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new Object[size];
    value = new short[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readObject();
      value[i] = s.readShort();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new long[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readLong();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new boolean[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readBoolean();
    }
  }
}

代码示例来源:origin: edu.emory.mathcs.util/emory-util-collections

private void readObject(ObjectInputStream in)
    throws IOException, ClassNotFoundException
  {
    in.defaultReadObject();
    int intervalCount = in.readInt();
    for (int i=0; i<intervalCount; i++) {
      short first = in.readShort();
      short last = in.readShort();
      addInterval(first, last);
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new double[size];
    value = new short[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readDouble();
      value[i] = s.readShort();
    }
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    end = s.readInt();
    array = new short[length = HashCommon.nextPowerOfTwo(end + 1)];
    for (int i = 0; i < end; i++)
      array[i] = s.readShort();
  }
}

代码示例来源:origin: it.unimi.dsi/fastutil

private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
    s.defaultReadObject();
    key = new short[size];
    value = new byte[size];
    for (int i = 0; i < size; i++) {
      key[i] = s.readShort();
      value[i] = s.readByte();
    }
  }
}

相关文章

ObjectInputStream类方法