本文整理汇总了Java中com.intellij.util.io.DataInputOutputUtil.readLONG方法的典型用法代码示例。如果您正苦于以下问题:Java DataInputOutputUtil.readLONG方法的具体用法?Java DataInputOutputUtil.readLONG怎么用?Java DataInputOutputUtil.readLONG使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.io.DataInputOutputUtil
的用法示例。
在下文中一共展示了DataInputOutputUtil.readLONG方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SerializedStubTree
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
public SerializedStubTree(DataInput in) throws IOException {
if (PersistentHashMapValueStorage.COMPRESSION_ENABLED) {
int serializedStubsLength = DataInputOutputUtil.readINT(in);
byte[] bytes = new byte[serializedStubsLength];
in.readFully(bytes);
myBytes = bytes;
myLength = myBytes.length;
myByteContentLength = DataInputOutputUtil.readLONG(in);
myCharContentLength = DataInputOutputUtil.readINT(in);
} else {
myBytes = CompressionUtil.readCompressed(in);
myLength = myBytes.length;
myByteContentLength = in.readLong();
myCharContentLength = in.readInt();
}
}
示例2: getIndexingStampInfo
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
public static String getIndexingStampInfo(VirtualFile file) {
try {
DataInputStream stream = INDEXED_STAMP.readAttribute(file);
if (stream == null) {
return "no data";
}
long stamp = DataInputOutputUtil.readTIME(stream);
long size = DataInputOutputUtil.readLONG(stream);
stream.close();
return "indexed at " + stamp + " with size " + size;
}
catch (IOException e) {
return ExceptionUtil.getThrowableText(e);
}
}
示例3: ChangeSet
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
public ChangeSet(DataInput in) throws IOException {
myId = DataInputOutputUtil.readLONG(in);
myName = StreamUtil.readStringOrNull(in);
myTimestamp = DataInputOutputUtil.readTIME(in);
int count = DataInputOutputUtil.readINT(in);
List<Change> changes = new ArrayList<Change>(count);
while (count-- > 0) {
changes.add(StreamUtil.readChange(in));
}
myChanges = Collections.unmodifiableList(changes);
isLocked = true;
}
示例4: Change
import com.intellij.util.io.DataInputOutputUtil; //导入方法依赖的package包/类
protected Change(DataInput in) throws IOException {
myId = DataInputOutputUtil.readLONG(in);
}