本文整理了Java中java.io.ObjectOutputStream.writeChar()
方法的一些代码示例,展示了ObjectOutputStream.writeChar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectOutputStream.writeChar()
方法的具体详情如下:
包路径:java.io.ObjectOutputStream
类名称:ObjectOutputStream
方法名:writeChar
[英]Writes a character (16 bit) to the target stream.
[中]将字符(16位)写入目标流。
代码示例来源:origin: robovm/robovm
private void writeObject(ObjectOutputStream stream) throws IOException {
stream.defaultWriteObject();
stream.writeChar(separatorChar);
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
s.writeInt(heap.length);
for (int i = 0; i < size; i++)
s.writeChar(heap[i]);
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
for (int i = 0; i < size; i++) {
s.writeInt(key[i]);
s.writeChar(value[i]);
}
}
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
s.writeInt(array.length);
for (int i = 0; i < size; i++)
s.writeChar(array[i]);
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
for (int i = 0; i < size; i++) {
s.writeChar(key[i]);
s.writeLong(value[i]);
}
}
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
for (int i = 0; i < size; i++) {
s.writeDouble(key[i]);
s.writeChar(value[i]);
}
}
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
for (int i = 0; i < size; i++) {
s.writeChar(key[i]);
s.writeByte(value[i]);
}
}
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
int n = count;
EntryIterator i = new EntryIterator();
Entry e;
s.defaultWriteObject();
while (n-- != 0) {
e = i.nextEntry();
s.writeChar(e.key);
s.writeChar(e.value);
}
}
/**
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject();
for (int i = 0; i < size; i++) {
s.writeFloat(key[i]);
s.writeChar(value[i]);
}
}
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
final K key[] = this.key;
final char value[] = this.value;
final MapIterator i = new MapIterator();
s.defaultWriteObject();
for (int j = size, e; j-- != 0;) {
e = i.nextEntry();
s.writeObject(key[e]);
s.writeChar(value[e]);
}
}
@SuppressWarnings("unchecked")
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
int n = count;
EntryIterator i = new EntryIterator();
Entry e;
s.defaultWriteObject();
while (n-- != 0) {
e = i.nextEntry();
s.writeInt(e.key);
s.writeChar(e.value);
}
}
/**
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
final char key[] = this.key;
final long value[] = this.value;
final MapIterator i = new MapIterator();
s.defaultWriteObject();
for (int j = size, e; j-- != 0;) {
e = i.nextEntry();
s.writeChar(key[e]);
s.writeLong(value[e]);
}
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
int n = count;
EntryIterator i = new EntryIterator();
Entry e;
s.defaultWriteObject();
while (n-- != 0) {
e = i.nextEntry();
s.writeChar(e.key);
s.writeBoolean(e.value);
}
}
/**
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
final char key[] = this.key;
final int value[] = this.value;
final MapIterator i = new MapIterator();
s.defaultWriteObject();
for (int j = size, e; j-- != 0;) {
e = i.nextEntry();
s.writeChar(key[e]);
s.writeInt(value[e]);
}
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
final char key[] = this.key;
final long value[] = this.value;
final MapIterator i = new MapIterator();
s.defaultWriteObject();
for (int j = size, e; j-- != 0;) {
e = i.nextEntry();
s.writeChar(key[e]);
s.writeLong(value[e]);
}
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
int n = count;
EntryIterator i = new EntryIterator();
Entry<K> e;
s.defaultWriteObject();
while (n-- != 0) {
e = i.nextEntry();
s.writeObject(e.key);
s.writeChar(e.value);
}
}
/**
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
final int key[] = this.key;
final char value[] = this.value;
final MapIterator i = new MapIterator();
s.defaultWriteObject();
for (int j = size, e; j-- != 0;) {
e = i.nextEntry();
s.writeInt(key[e]);
s.writeChar(value[e]);
}
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
int n = count;
EntryIterator i = new EntryIterator();
Entry e;
s.defaultWriteObject();
while (n-- != 0) {
e = i.nextEntry();
s.writeChar(e.key);
s.writeLong(e.value);
}
}
/**
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
final char key[] = this.key;
final long value[] = this.value;
final MapIterator i = new MapIterator();
s.defaultWriteObject();
for (int j = size, e; j-- != 0;) {
e = i.nextEntry();
s.writeChar(key[e]);
s.writeLong(value[e]);
}
}
代码示例来源:origin: it.unimi.dsi/fastutil
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
int n = count;
EntryIterator i = new EntryIterator();
Entry e;
s.defaultWriteObject();
while (n-- != 0) {
e = i.nextEntry();
s.writeLong(e.key);
s.writeChar(e.value);
}
}
/**
内容来源于网络,如有侵权,请联系作者删除!