当前位置: 首页>>代码示例>>Java>>正文


Java IOUtil.readUTFFast方法代码示例

本文整理汇总了Java中com.intellij.util.io.IOUtil.readUTFFast方法的典型用法代码示例。如果您正苦于以下问题:Java IOUtil.readUTFFast方法的具体用法?Java IOUtil.readUTFFast怎么用?Java IOUtil.readUTFFast使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.util.io.IOUtil的用法示例。


在下文中一共展示了IOUtil.readUTFFast方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public DLangComponentInfo read(@NotNull DataInput in) throws IOException {
    final String componentName = IOUtil.readUTFFast(buffer, in);
    final String moduleName = IOUtil.readUTFFast(buffer, in);
    final String componentTypeStr = IOUtil.readUTFFast(buffer, in);
    DLangComponentType componentType = DLangComponentType.valueOf(componentTypeStr);

    return new DLangComponentInfo(componentType, componentName, moduleName);
}
 
开发者ID:shekn-itrtch,项目名称:DLangPlugin,代码行数:10,代码来源:DLangComponentInfoExternalizer.java

示例2: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public List<SourcePathAndRootIndex> read(DataInput in) throws IOException {
  List<SourcePathAndRootIndex> result = new SmartList<SourcePathAndRootIndex>();
  final DataInputStream stream = (DataInputStream)in;
  while (stream.available() > 0) {
    final String path = IOUtil.readUTFFast(myBuffer, stream);
    final int index = stream.readInt();
    result.add(new SourcePathAndRootIndex(path, index));
  }
  return result;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:ArtifactOutputToSourceMapping.java

示例3: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public VirtualFileSetState read(DataInput in) throws IOException {
  final VirtualFileSetState state = new VirtualFileSetState();
  int size = in.readInt();
  while (size-- > 0) {
    final String url = IOUtil.readUTFFast(myBuffer, in);
    final long timestamp = in.readLong();
    state.myTimestamps.put(url, timestamp);
  }
  return state;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:VirtualFileSetState.java

示例4: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public VirtualFileWithDependenciesState read(DataInput in) throws IOException {
  final VirtualFileWithDependenciesState state = new VirtualFileWithDependenciesState(in.readLong());
  int size = in.readInt();
  while (size-- > 0) {
    final String url = IOUtil.readUTFFast(myBuffer, in);
    final long timestamp = in.readLong();
    state.myDependencies.put(url, timestamp);
  }
  return state;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:VirtualFileWithDependenciesState.java

示例5: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public ArtifactPackagingItemOutputState read(DataInput in) throws IOException {
  int size = in.readInt();
  SmartList<Pair<String, Long>> destinations = new SmartList<Pair<String, Long>>();
  while (size-- > 0) {
    String path = IOUtil.readUTFFast(myBuffer, in);
    long outputTimestamp = in.readLong();
    destinations.add(Pair.create(path, outputTimestamp));
  }
  return new ArtifactPackagingItemOutputState(destinations);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:ArtifactPackagingItemExternalizer.java

示例6: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public List<HaxeClassInfo> read(@NotNull DataInput in) throws IOException {
  final int size = in.readInt();
  final List<HaxeClassInfo> result = new ArrayList<HaxeClassInfo>(size);
  for (int i = 0; i < size; ++i) {
    final int key = in.readInt();
    final String value = IOUtil.readUTFFast(buffer.get(), in);
    result.add(new HaxeClassInfo(value, HaxeComponentType.valueOf(key)));
  }
  return result;
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:12,代码来源:HaxeClassInfoListExternalizer.java

示例7: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public List<HaxeClassInfo> read(DataInput in) throws IOException {
  final int size = in.readInt();
  final List<HaxeClassInfo> result = new ArrayList<HaxeClassInfo>(size);
  for (int i = 0; i < size; ++i) {
    final int key = in.readInt();
    final String value = IOUtil.readUTFFast(buffer, in);
    result.add(new HaxeClassInfo(value, HaxeComponentType.valueOf(key)));
  }
  return result;
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:12,代码来源:HaxeClassInfoListExternalizer.java

示例8: loadClassAndMethodsMap

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@NotNull
private static TIntObjectHashMap<TIntArrayList> loadClassAndMethodsMap(File file, TestInfoHolder holder) throws IOException
{
	DataInputStream inputStream = new DataInputStream(new BufferedInputStream(new FileInputStream(file), 64 * 1024));
	byte[] buffer = IOUtil.allocReadWriteUTFBuffer();

	try
	{
		int numberOfClasses = DataInputOutputUtil.readINT(inputStream);
		TIntObjectHashMap<TIntArrayList> classData = new TIntObjectHashMap<>(numberOfClasses);
		while(numberOfClasses-- > 0)
		{
			String classQName = IOUtil.readUTFFast(buffer, inputStream);
			int classId = holder.myClassEnumeratorCache.enumerate(classQName);
			int numberOfMethods = DataInputOutputUtil.readINT(inputStream);
			TIntArrayList methodsList = new TIntArrayList(numberOfMethods);

			while(numberOfMethods-- > 0)
			{
				String methodName = IOUtil.readUTFFast(buffer, inputStream);
				methodsList.add(holder.myMethodEnumeratorCache.enumerate(methodName));
			}

			classData.put(classId, methodsList);
		}
		return classData;
	}
	finally
	{
		inputStream.close();
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:33,代码来源:TestDiscoveryIndex.java

示例9: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
public File read(DataInput in) throws IOException {
  return new File(IOUtil.readUTFFast(buffer, in));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:FileKeyDescriptor.java

示例10: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public HaxeClassInfo read(@NotNull DataInput in) throws IOException {
  final String value = IOUtil.readUTFFast(buffer.get(), in);
  final int key = in.readInt();
  return new HaxeClassInfo(value, HaxeComponentType.valueOf(key));
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:7,代码来源:HaxeClassInfoExternalizer.java

示例11: read

import com.intellij.util.io.IOUtil; //导入方法依赖的package包/类
@Override
public HaxeClassInfo read(DataInput in) throws IOException {
  final String value = IOUtil.readUTFFast(buffer, in);
  final int key = in.readInt();
  return new HaxeClassInfo(value, HaxeComponentType.valueOf(key));
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:7,代码来源:HaxeClassInfoExternalizer.java


注:本文中的com.intellij.util.io.IOUtil.readUTFFast方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。